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

Commit 69dfb64a authored by Matt Pietal's avatar Matt Pietal
Browse files

Controls Ui - Fix seeding crash

Need to return early when there is no preferred component to seed
controls from.

Bug: 154037512
Test: manual
Change-Id: I5aad8bfb90453cdc97fc75575390d16cd2824c05
parent 9b6af1dc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -395,6 +395,7 @@ public class GlobalActionsDialog implements DialogInterface.OnDismissListener,
        if (preferredComponent == null) {
            Log.i(TAG, "Controls seeding: No preferred component has been set, will not seed");
            mControlsPreferences.edit().putBoolean(PREFS_CONTROLS_SEEDING_COMPLETED, true).apply();
            return;
        }

        mControlsController.seedFavoritesForComponent(