Give each preference screen its own activity and toolbar title

This change is in preparation for each preference screen having its own collapsible toolbar with its specific title.

Test: Subsettings open with activity transition and title changes
Bug: 187732263
Change-Id: Iac44d688539195ddb6c2aca0a96d737ce7727071
This commit is contained in:
Brian Isganitis
2021-05-25 00:07:53 -04:00
parent a07c2efdf6
commit 890d8d5a91
4 changed files with 202 additions and 10 deletions

View File

@@ -104,6 +104,10 @@ public class DeveloperOptionsFragment extends PreferenceFragmentCompat {
initFlags();
loadPluginPrefs();
maybeAddSandboxCategory();
if (getActivity() != null) {
getActivity().setTitle("Developer Options");
}
}
private void filterPreferences(String query, PreferenceGroup pg) {