diff --git a/app/src/main/java/com/topjohnwu/magisk/ui/module/ModuleFragment.kt b/app/src/main/java/com/topjohnwu/magisk/ui/module/ModuleFragment.kt index 578285343..e172ba9c3 100644 --- a/app/src/main/java/com/topjohnwu/magisk/ui/module/ModuleFragment.kt +++ b/app/src/main/java/com/topjohnwu/magisk/ui/module/ModuleFragment.kt @@ -33,8 +33,11 @@ class ModuleFragment : BaseUIFragment get() = binding.moduleFilter.isVisible set(value) { if (!value) hideKeyboard() - (activity as? MainActivity)?.requestNavigationHidden(value) MotionRevealHelper.withViews(binding.moduleFilter, binding.moduleFilterToggle, value) + with(activity as MainActivity) { + requestNavigationHidden(value) + setDisplayHomeAsUpEnabled(value) + } } override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {