Commit f76015d7 authored by Viktor De Pasquale's avatar Viktor De Pasquale

Fixed options menus appearing on screens that they shouldn't

parent 7e5e1416
package com.topjohnwu.magisk.ui.home
import android.os.Bundle
import android.view.View
import com.skoumal.teanity.viewevents.ViewEvent
import com.topjohnwu.magisk.BuildConfig
import com.topjohnwu.magisk.Config
......@@ -41,13 +39,9 @@ class MagiskFragment : NewMagiskFragment<HomeViewModel, FragmentMagiskBinding>()
}
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
setHasOptionsMenu(true)
}
override fun onStart() {
super.onStart()
setHasOptionsMenu(true)
requireActivity().setTitle(R.string.magisk)
}
......
......@@ -43,6 +43,7 @@ public class SettingsFragment extends BasePreferenceFragment {
@Override
public void onStart() {
super.onStart();
setHasOptionsMenu(true);
requireActivity().setTitle(R.string.settings);
}
......
......@@ -13,6 +13,7 @@ class SuperuserFragment :
override fun onStart() {
super.onStart()
setHasOptionsMenu(true)
requireActivity().setTitle(R.string.superuser)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment