From a67c3eb1032e7d4fd05b551ccf1cc9b6e4ecbef9 Mon Sep 17 00:00:00 2001 From: pacien Date: Wed, 22 Aug 2018 00:59:30 +0200 Subject: Make root view nullable --- app/src/main/java/org/pacien/tincapp/activities/BaseFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.* * @author pacien */ abstract class BaseFragment : Fragment() { - private val rootView by lazy { base_activity_frame!! } + private val rootView by lazy { base_activity_frame } fun inflate(@LayoutRes layout: Int) = layoutInflater.inflate(layout, rootView, false)!! fun inflate(inflateFunc: (LayoutInflater, ViewGroup?, Boolean) -> View) = inflateFunc(layoutInflater, rootView, false) -- cgit v1.2.3