Fork SettingsDrawerActivity in Settings.

Settings app uses fragment classes from android framework,
which is deprecated as of P.
We need to switch to use fragment and associated classes to androidx.

Because Settings didn't support drawer feature since Android O,
we rename SettingsDrawerActivity to SettingsBaseActivity.

Before we migrate to fragment of androix,
we need to let SettingsBaseActivity extend FragmentActivity.

Test: make RunSettingsRoboTests
Bug: 110259478
Change-Id: Ifbf53f75f042da1618da16cf7837b70d298a9a14
This commit is contained in:
tmfang
2018-06-14 14:48:35 +08:00
parent ce287b9fb6
commit d97fba5f0f
6 changed files with 260 additions and 14 deletions

View File

@@ -152,7 +152,6 @@ public class BackupSettingsHelper {
}
private Intent getIntentForDefaultBackupSettings() {
// Extra needed by {@link SettingsDrawerActivity} to show the back button navigation.
return new Intent(mContext, PrivacySettingsActivity.class);
}