diff --git a/app/src/main/kotlin/com/simplemobiletools/launcher/fragments/AllAppsFragment.kt b/app/src/main/kotlin/com/simplemobiletools/launcher/fragments/AllAppsFragment.kt index 0377c50..6848711 100644 --- a/app/src/main/kotlin/com/simplemobiletools/launcher/fragments/AllAppsFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/launcher/fragments/AllAppsFragment.kt @@ -41,6 +41,10 @@ class AllAppsFragment(context: Context, attributeSet: AttributeSet) : MyFragment } fun onConfigurationChanged() { + if (all_apps_grid == null) { + return + } + all_apps_grid.scrollToPosition(0) all_apps_fastscroller.resetManualScrolling() setupViews() diff --git a/app/src/main/kotlin/com/simplemobiletools/launcher/fragments/WidgetsFragment.kt b/app/src/main/kotlin/com/simplemobiletools/launcher/fragments/WidgetsFragment.kt index 12e0761..58ae232 100644 --- a/app/src/main/kotlin/com/simplemobiletools/launcher/fragments/WidgetsFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/launcher/fragments/WidgetsFragment.kt @@ -45,6 +45,10 @@ class WidgetsFragment(context: Context, attributeSet: AttributeSet) : MyFragment } fun onConfigurationChanged() { + if (widgets_list == null) { + return + } + widgets_list.scrollToPosition(0) setupViews()