Fix unexpected null check condition flipping.

am: 6e5b602

* commit '6e5b602552b15ab95dc7b1e4e824f8da6a951fcf':
  Fix unexpected null check condition flipping.

Change-Id: Ic0cf0cf5074acd2d02a07a8b47e769869a29f88e
This commit is contained in:
Seigo Nonaka
2016-04-27 07:54:55 +00:00
committed by android-build-merger

View File

@ -1907,7 +1907,7 @@ public class SettingsProvider extends ContentProvider {
private void ensureSecureSettingAndroidIdSetLocked(SettingsState secureSettings) {
Setting value = secureSettings.getSettingLocked(Settings.Secure.ANDROID_ID);
if (value.isNull()) {
if (!value.isNull()) {
return;
}
@ -2300,7 +2300,7 @@ public class SettingsProvider extends ContentProvider {
final Setting showNotifications = systemSecureSettings.getSettingLocked(
Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS);
if (showNotifications.isNull()) {
if (!showNotifications.isNull()) {
final SettingsState secureSettings = getSecureSettingsLocked(userId);
secureSettings.insertSettingLocked(
Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS,
@ -2310,7 +2310,7 @@ public class SettingsProvider extends ContentProvider {
final Setting allowPrivate = systemSecureSettings.getSettingLocked(
Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS);
if (allowPrivate.isNull()) {
if (!allowPrivate.isNull()) {
final SettingsState secureSettings = getSecureSettingsLocked(userId);
secureSettings.insertSettingLocked(
Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS,