Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72ebbb5c authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fallback to default device settings if not found for virtual device" into main

parents 1c484541 966e304a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -459,7 +459,8 @@ public class SettingsProvider extends ContentProvider {
                Setting setting = getSecureSetting(name, requestingUserId, callingDeviceId);
                // If any overridden setting is not available for a virtual device, return the
                // setting corresponding to the default device.
                if (setting == null || setting.isNull()) {
                if (callingDeviceId != Context.DEVICE_ID_DEFAULT
                        && (setting == null || setting.isNull())) {
                    setting = getSecureSetting(name, requestingUserId, Context.DEVICE_ID_DEFAULT);
                }
                return packageValueForCallResult(SETTINGS_TYPE_SECURE, name, requestingUserId,
@@ -469,7 +470,8 @@ public class SettingsProvider extends ContentProvider {
                Setting setting = getSystemSetting(name, requestingUserId, callingDeviceId);
                // If any overridden setting is not available for a virtual device, return the
                // setting corresponding to the default device.
                if (setting == null || setting.isNull()) {
                if (callingDeviceId != Context.DEVICE_ID_DEFAULT
                        && (setting == null || setting.isNull())) {
                    setting = getSystemSetting(name, requestingUserId, Context.DEVICE_ID_DEFAULT);
                }
                return packageValueForCallResult(SETTINGS_TYPE_SYSTEM, name, requestingUserId,