diff options
author | pacien | 2018-08-22 00:59:30 +0200 |
---|---|---|
committer | pacien | 2018-08-22 00:59:30 +0200 |
commit | a67c3eb1032e7d4fd05b551ccf1cc9b6e4ecbef9 (patch) | |
tree | 5dd3507835ead4b6fcf48f6aeb68606d86e1f952 /app/src/main/java/org/pacien | |
parent | a490fd5a5e1fae4a5eacdf95a4dbb737f44ad9fe (diff) | |
download | tincapp-a67c3eb1032e7d4fd05b551ccf1cc9b6e4ecbef9.tar.gz |
Make root view nullable
Diffstat (limited to 'app/src/main/java/org/pacien')
-rw-r--r-- | app/src/main/java/org/pacien/tincapp/activities/BaseFragment.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/org/pacien/tincapp/activities/BaseFragment.kt b/app/src/main/java/org/pacien/tincapp/activities/BaseFragment.kt index 685950f..44f57c7 100644 --- a/app/src/main/java/org/pacien/tincapp/activities/BaseFragment.kt +++ b/app/src/main/java/org/pacien/tincapp/activities/BaseFragment.kt | |||
@@ -29,7 +29,7 @@ import kotlinx.android.synthetic.main.base_activity.* | |||
29 | * @author pacien | 29 | * @author pacien |
30 | */ | 30 | */ |
31 | abstract class BaseFragment : Fragment() { | 31 | abstract class BaseFragment : Fragment() { |
32 | private val rootView by lazy { base_activity_frame!! } | 32 | private val rootView by lazy { base_activity_frame } |
33 | 33 | ||
34 | fun inflate(@LayoutRes layout: Int) = layoutInflater.inflate(layout, rootView, false)!! | 34 | fun inflate(@LayoutRes layout: Int) = layoutInflater.inflate(layout, rootView, false)!! |
35 | fun inflate(inflateFunc: (LayoutInflater, ViewGroup?, Boolean) -> View) = inflateFunc(layoutInflater, rootView, false) | 35 | fun inflate(inflateFunc: (LayoutInflater, ViewGroup?, Boolean) -> View) = inflateFunc(layoutInflater, rootView, false) |