moving a function a bit up

This commit is contained in:
tibbi 2021-08-29 22:55:19 +02:00
parent 29ce951399
commit 03a3f5d187
1 changed files with 5 additions and 5 deletions

View File

@ -258,6 +258,11 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
super.onActivityResult(requestCode, resultCode, resultData)
}
override fun onConfigurationChanged(newConfig: Configuration) {
super.onConfigurationChanged(newConfig)
initBottomActionsLayout()
}
private fun initViewPager() {
val uri = intent.data
if (uri != null) {
@ -1124,11 +1129,6 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
}
}
override fun onConfigurationChanged(newConfig: Configuration) {
super.onConfigurationChanged(newConfig)
initBottomActionsLayout()
}
private fun refreshViewPager() {
if (config.getFolderSorting(mDirectory) and SORT_BY_RANDOM == 0) {
GetMediaAsynctask(applicationContext, mDirectory, false, false, mShowAll) {