Slot Change Receiver Migration
Implemented slot change cases when pSIM is inserted and removed. Bug: 153811431 Bug: 170508680 Test: Manually tested Change-Id: Ib0a96da1d7d702f7c64e75b929c73b8548f8e459
This commit is contained in:
@@ -48,14 +48,16 @@ public class SimSlotChangeReceiver extends BroadcastReceiver {
|
||||
return;
|
||||
}
|
||||
|
||||
final PendingResult pendingResult = goAsync();
|
||||
ThreadUtils.postOnBackgroundThread(
|
||||
() -> {
|
||||
synchronized (mLock) {
|
||||
if (!shouldHandleSlotChange(context)) {
|
||||
return;
|
||||
}
|
||||
mSlotChangeHandler.onSlotsStatusChange(context);
|
||||
mSlotChangeHandler.onSlotsStatusChange(context.getApplicationContext());
|
||||
}
|
||||
ThreadUtils.postOnMainThread(pendingResult::finish);
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user