From 74dffa1bd5ebc070b8e75cbf27b2b8472b10ff5e Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Tue, 18 Sep 2012 15:17:58 -0700 Subject: [PATCH] Fix bug: allow users to select "none" for lockscreen widget Change-Id: Ibd0449899ce7c340a6f838c56de58b70538400fc --- src/com/android/settings/SecuritySettings.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) { -- 2.11.0