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

Commit 1d1e80a5 authored by Ralph Nathan's avatar Ralph Nathan
Browse files

Handle NPE in UserController

If there's no AppWidgetManagerInternal service, don't call unlockUser.

Bug: 112559150
Bug: 76154638
Test: device boots

Change-Id: Id5cc4ccb0a9ec18ff5d97683eb73dcea230b9fc1
parent 9359a6a2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2179,8 +2179,10 @@ class UserController implements Handler.Callback {

        void startUserWidgets(int userId) {
            AppWidgetManagerInternal awm = LocalServices.getService(AppWidgetManagerInternal.class);
            if (awm != null) {
                awm.unlockUser(userId);
            }
        }

        void updateUserConfiguration() {
            mService.mActivityTaskManager.updateUserConfiguration();