Skip to content

Commit

Permalink
Merge pull request #1378 from codeall9/bug/setting-appearance-title
Browse files Browse the repository at this point in the history
Fix Language of Appearance Title
  • Loading branch information
alexbakker committed May 17, 2024
2 parents dee881b + 802d449 commit c28548d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import androidx.preference.PreferenceFragmentCompat;

import com.beemdevelopment.aegis.R;
import com.beemdevelopment.aegis.ui.fragments.preferences.AppearancePreferencesFragment;
import com.beemdevelopment.aegis.ui.fragments.preferences.MainPreferencesFragment;
import com.beemdevelopment.aegis.ui.fragments.preferences.PreferencesFragment;

Expand Down Expand Up @@ -128,6 +129,9 @@ private class FragmentResumeListener extends FragmentManager.FragmentLifecycleCa
public void onFragmentStarted(@NonNull FragmentManager fm, @NonNull Fragment f) {
if (f instanceof MainPreferencesFragment) {
setTitle(R.string.action_settings);
} else if (f instanceof AppearancePreferencesFragment) {
_prefTitle = getString(R.string.pref_section_appearance_title);
setTitle(_prefTitle);
}
}
}
Expand Down

0 comments on commit c28548d

Please sign in to comment.