Fix Plugin Preference enable for Overview

This commit is contained in:
Philoul 2020-08-01 19:14:38 +02:00
parent ead863be42
commit 4bf1e886a4

View file

@ -147,7 +147,7 @@ class MainActivity : NoSplashAppCompatActivity() {
}
private fun checkPluginPreferences(viewPager: ViewPager2) {
if (viewPager.currentItem > 0) pluginPreferencesMenuItem?.isEnabled = (viewPager.adapter as TabPageAdapter).getPluginAt(viewPager.currentItem).preferencesId != -1
if (viewPager.currentItem >= 0) pluginPreferencesMenuItem?.isEnabled = (viewPager.adapter as TabPageAdapter).getPluginAt(viewPager.currentItem).preferencesId != -1
}
override fun onPostCreate(savedInstanceState: Bundle?, persistentState: PersistableBundle?) {