From d0b0a2eb833d520452e29372fcc92b079dfcfb7b Mon Sep 17 00:00:00 2001 From: ottoptj Date: Thu, 19 Sep 2024 08:54:31 +0300 Subject: [PATCH] Fixed issue with contacts menu remaining open if the option is disabled while last open view was contacts menu. --- app/src/main/java/eu/ottop/yamlauncher/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/ottop/yamlauncher/MainActivity.kt b/app/src/main/java/eu/ottop/yamlauncher/MainActivity.kt index ef1c299..27b14a7 100644 --- a/app/src/main/java/eu/ottop/yamlauncher/MainActivity.kt +++ b/app/src/main/java/eu/ottop/yamlauncher/MainActivity.kt @@ -269,9 +269,9 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh try { // The menu opens from the top appRecycler.scrollToPosition(0) + menuView.displayedChild = 0 if (searchSwitcher.visibility == View.VISIBLE) { contactRecycler.scrollToPosition(0) - menuView.displayedChild = 0 setAppViewDetails() } }