From b6806bea1d20f0ead3209c414a02d10e672e1955 Mon Sep 17 00:00:00 2001 From: Muntashir Al-Islam Date: Mon, 22 Apr 2024 17:00:57 +0600 Subject: [PATCH] [Settings] Fix title for the Mode of Ops settings page Signed-off-by: Muntashir Al-Islam --- .../AppManager/settings/ModeOfOpsPreference.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/io/github/muntashirakon/AppManager/settings/ModeOfOpsPreference.java b/app/src/main/java/io/github/muntashirakon/AppManager/settings/ModeOfOpsPreference.java index 6d762b6e386..0f69ed61b5f 100644 --- a/app/src/main/java/io/github/muntashirakon/AppManager/settings/ModeOfOpsPreference.java +++ b/app/src/main/java/io/github/muntashirakon/AppManager/settings/ModeOfOpsPreference.java @@ -172,6 +172,12 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat mModel.getCustomCommand().observe(getViewLifecycleOwner(), customCommand::setText); } + @Override + public void onStart() { + super.onStart(); + requireActivity().setTitle(R.string.pref_mode_of_operations); + } + private void updateViews() { boolean serverActive = LocalServer.alive(requireContext()); boolean serverRequired = requireRemoteServer(mCurrentMode);