Merge "Fix issue that default dialer change is broadcasted unintentionally" am: b36985d523
am: 4677f77316
am: 5a110fbefe
Original change: https://android-review.googlesource.com/c/platform/packages/services/Telecomm/+/1533045 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I2dfe3500dec44b33f76323831af97ee4acc67aee
This commit is contained in:
commit
07beea22a7
|
@ -85,8 +85,11 @@ public class RoleManagerAdapterImpl implements RoleManagerAdapter {
|
|||
|
||||
@Override
|
||||
public void observeDefaultDialerApp(Executor executor, IntConsumer observer) {
|
||||
mRoleManager.addOnRoleHoldersChangedListenerAsUser(executor, (roleName, user) ->
|
||||
observer.accept(user.getIdentifier()), UserHandle.ALL);
|
||||
mRoleManager.addOnRoleHoldersChangedListenerAsUser(executor, (roleName, user) -> {
|
||||
if (ROLE_DIALER.equals(roleName)) {
|
||||
observer.accept(user.getIdentifier());
|
||||
}
|
||||
}, UserHandle.ALL);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue