aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-12-29 17:21:28 -0800
committerAllan Wang <me@allanwang.ca>2019-12-29 17:21:28 -0800
commit692c1233cd3dba0d2df06dc65ebef1fc1ecc1cad (patch)
tree9b623c37bb1c4fe2c0b58052be0f451ae05d13ed /app
parent8465a781286bc9d095fdbbc395c707e86b8de5fb (diff)
downloadfrost-692c1233cd3dba0d2df06dc65ebef1fc1ecc1cad.tar.gz
frost-692c1233cd3dba0d2df06dc65ebef1fc1ecc1cad.tar.bz2
frost-692c1233cd3dba0d2df06dc65ebef1fc1ecc1cad.zip
Cleanup
Diffstat (limited to 'app')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt6
1 files changed, 4 insertions, 2 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 1c0471e2..77b6224b 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt
@@ -231,7 +231,6 @@ abstract class BaseMainActivity : BaseActivity(), MainActivityContract,
)
}
}
-// setupDrawer(savedInstanceState)
L.i { "Main started in ${System.currentTimeMillis() - start} ms" }
drawerWrapperBinding.initDrawer()
contentBinding.initFab()
@@ -808,7 +807,10 @@ abstract class BaseMainActivity : BaseActivity(), MainActivityContract,
}
inline val currentFragment: BaseFragment
- get() = supportFragmentManager.findFragmentByTag("android:switcher:${contentBinding.viewpager.id}:${contentBinding.viewpager.currentItem}") as BaseFragment
+ get() {
+ val viewpager = contentBinding.viewpager
+ return supportFragmentManager.findFragmentByTag("android:switcher:${viewpager.id}:${viewpager.currentItem}") as BaseFragment
+ }
override fun reloadFragment(fragment: BaseFragment) {
runOnUiThread { adapter.reloadFragment(fragment) }