// Special case for location (sigh).
if (isLocationProvidersAllowedRestricted(name, callingUserId, owningUserId)) {
- return null;
+ continue;
}
Setting setting = mSettingsRegistry.getSettingLocked(
// Special case for location (sigh).
if (isLocationProvidersAllowedRestricted(name, callingUserId, owningUserId)) {
- return null;
+ return mSettingsRegistry.getSettingsLocked(SETTINGS_TYPE_SECURE,
+ owningUserId).getNullSetting();
}
// Get the value.
package com.android.providers.settings;
-import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.os.SystemClock;
return mVersion;
}
+ public Setting getNullSetting() {
+ return mNullSetting;
+ }
+
// The settings provider must hold its lock when calling here.
public void setVersionLocked(int version) {
if (version == mVersion) {