Fix bug: allow users to select "none" for lockscreen widget

Change-Id: Ibd0449899ce7c340a6f838c56de58b70538400fc
This commit is contained in:
Michael Jurka
2012-09-18 15:17:58 -07:00
parent a6c1b346ae
commit 74dffa1bd5

View 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) {