From: Michael Jurka Date: Tue, 18 Sep 2012 22:17:58 +0000 (-0700) Subject: Fix bug: allow users to select "none" for lockscreen widget X-Git-Tag: android-x86-4.4-r1~634^2~3^2~171^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=74dffa1bd5ebc070b8e75cbf27b2b8472b10ff5e;p=android-x86%2Fpackages-apps-Settings.git Fix bug: allow users to select "none" for lockscreen widget Change-Id: Ibd0449899ce7c340a6f838c56de58b70538400fc --- diff --git a/src/com/android/settings/SecuritySettings.java b/src/com/android/settings/SecuritySettings.java index ac4ea86bf4..64e2ec37ce 100644 --- a/src/com/android/settings/SecuritySettings.java +++ b/src/com/android/settings/SecuritySettings.java @@ -593,9 +593,8 @@ public class SecuritySettings extends SettingsPreferenceFragment // If we selected "none", delete the allocated id AppWidgetHost.deleteAppWidgetIdForSystem(appWidgetId); data.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1); - } else { - onActivityResult(REQUEST_CREATE_APPWIDGET, Activity.RESULT_OK, data); } + onActivityResult(REQUEST_CREATE_APPWIDGET, Activity.RESULT_OK, data); } } else if ( requestCode == REQUEST_CREATE_APPWIDGET && resultCode == Activity.RESULT_OK) {