Merge "Fix flag check for preserve settings feature"
This commit is contained in:
committed by
Android (Google) Code Review
commit
a6f6b40353
@@ -626,7 +626,7 @@ public class SettingsBackupAgent extends BackupAgentHelper {
|
||||
* Get names of the settings for which the current value should be preserved during restore.
|
||||
*/
|
||||
private Set<String> getSettingsToPreserveInRestore(Uri settingsUri) {
|
||||
if (!FeatureFlagUtils.isEnabled(getApplicationContext(),
|
||||
if (!FeatureFlagUtils.isEnabled(getBaseContext(),
|
||||
FeatureFlagUtils.SETTINGS_DO_NOT_RESTORE_PRESERVED)) {
|
||||
return Collections.emptySet();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user