Fixed issue with contacts menu remaining open if the option is disabled while last open view was contacts menu.

This commit is contained in:
ottoptj 2024-09-19 08:54:31 +03:00
commit d0b0a2eb83

View file

@ -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()
}
}