OSDN Git Service

Fix bug: allow users to select "none" for lockscreen widget
authorMichael Jurka <mikejurka@google.com>
Tue, 18 Sep 2012 22:17:58 +0000 (15:17 -0700)
committerMichael Jurka <mikejurka@google.com>
Tue, 18 Sep 2012 22:17:58 +0000 (15:17 -0700)
Change-Id: Ibd0449899ce7c340a6f838c56de58b70538400fc

src/com/android/settings/SecuritySettings.java

index ac4ea86..64e2ec3 100644 (file)
@@ -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) {