Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74dffa1b authored by Michael Jurka's avatar Michael Jurka
Browse files

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

Change-Id: Ibd0449899ce7c340a6f838c56de58b70538400fc
parent a6c1b346
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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) {