aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2018-08-22 00:59:30 +0200
committerpacien2018-08-22 00:59:30 +0200
commita67c3eb1032e7d4fd05b551ccf1cc9b6e4ecbef9 (patch)
tree5dd3507835ead4b6fcf48f6aeb68606d86e1f952
parenta490fd5a5e1fae4a5eacdf95a4dbb737f44ad9fe (diff)
downloadtincapp-a67c3eb1032e7d4fd05b551ccf1cc9b6e4ecbef9.tar.gz
Make root view nullable
-rw-r--r--app/src/main/java/org/pacien/tincapp/activities/BaseFragment.kt2
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 */
31abstract class BaseFragment : Fragment() { 31abstract 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)