Loading src/java/com/android/internal/telephony/SubscriptionInfoUpdater.java +2 −13 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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 { Loading @@ -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) { Loading Loading
src/java/com/android/internal/telephony/SubscriptionInfoUpdater.java +2 −13 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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 { Loading @@ -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) { Loading