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

Commit b1d8ae74 authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Add onLockedBootComplete callback to UserSwitchObserver.

Bug: 30948225
Change-Id: Iecf991b6cb4e42383a341c9ab05d3a3b7c79d417
parent 31e0f88f
Loading
Loading
Loading
Loading
+2 −13
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
package com.android.internal.telephony;

import android.app.ActivityManagerNative;
import android.app.IUserSwitchObserver;
import android.app.UserSwitchObserver;
import android.content.BroadcastReceiver;
import android.content.ContentResolver;
import android.content.ContentValues;
@@ -140,8 +140,7 @@ public class SubscriptionInfoUpdater extends Handler {
        // -Whenever we switch to a new user
        mCurrentlyActiveUserId = 0;
        try {
            ActivityManagerNative.getDefault().registerUserSwitchObserver(
                    new IUserSwitchObserver.Stub() {
            ActivityManagerNative.getDefault().registerUserSwitchObserver(new UserSwitchObserver() {
                @Override
                public void onUserSwitching(int newUserId, IRemoteCallback reply)
                        throws RemoteException {
@@ -157,16 +156,6 @@ public class SubscriptionInfoUpdater extends Handler {
                        }
                    }
                }

                @Override
                public void onUserSwitchComplete(int newUserId) {
                    // Ignore.
                }

                @Override
                public void onForegroundProfileSwitch(int newProfileId) throws RemoteException {
                    // Ignore.
                }
            }, LOG_TAG);
            mCurrentlyActiveUserId = ActivityManagerNative.getDefault().getCurrentUser().id;
        } catch (RemoteException e) {