aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-12-29 17:19:16 -0800
committerAllan Wang <me@allanwang.ca>2019-12-29 17:19:16 -0800
commit8465a781286bc9d095fdbbc395c707e86b8de5fb (patch)
tree77dc854745f9cc585385e10528040d640d9c520b /app/src/main
parent03787c95cbdd71c6a3e3c0e4dc2ec13adaa79620 (diff)
downloadfrost-8465a781286bc9d095fdbbc395c707e86b8de5fb.tar.gz
frost-8465a781286bc9d095fdbbc395c707e86b8de5fb.tar.bz2
frost-8465a781286bc9d095fdbbc395c707e86b8de5fb.zip
Fix viewpager id ref
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt4
1 files changed, 2 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 62138b19..1c0471e2 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt
@@ -807,8 +807,8 @@ abstract class BaseMainActivity : BaseActivity(), MainActivityContract,
return false
}
- inline val currentFragment
- get() = supportFragmentManager.findFragmentByTag("android:switcher:${R.id.container}:${contentBinding.viewpager.currentItem}") as BaseFragment
+ inline val currentFragment: BaseFragment
+ get() = supportFragmentManager.findFragmentByTag("android:switcher:${contentBinding.viewpager.id}:${contentBinding.viewpager.currentItem}") as BaseFragment
override fun reloadFragment(fragment: BaseFragment) {
runOnUiThread { adapter.reloadFragment(fragment) }