aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-02-23 18:03:13 -0800
committerAllan Wang <me@allanwang.ca>2020-02-23 18:03:13 -0800
commitbfcef03d0ab960cd55e9fc5c097b12b5503d5d1f (patch)
tree761fc76615d657cc401b9becbeaeb8fc45cee6ef
parent0498f26dc62c68561ce9803f49597b11b1fc0a4d (diff)
downloadfrost-bfcef03d0ab960cd55e9fc5c097b12b5503d5d1f.tar.gz
frost-bfcef03d0ab960cd55e9fc5c097b12b5503d5d1f.tar.bz2
frost-bfcef03d0ab960cd55e9fc5c097b12b5503d5d1f.zip
Make nullable cast expect correct type
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt
index 06e7969d..8d580ebd 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt
@@ -810,7 +810,7 @@ abstract class BaseMainActivity : BaseActivity(), MainActivityContract,
inline val currentFragment: BaseFragment?
get() {
val viewpager = contentBinding.viewpager
- return supportFragmentManager.findFragmentByTag("android:switcher:${viewpager.id}:${viewpager.currentItem}") as? BaseFragment
+ return supportFragmentManager.findFragmentByTag("android:switcher:${viewpager.id}:${viewpager.currentItem}") as BaseFragment?
}
override fun reloadFragment(fragment: BaseFragment) {