Merge "Use Intent.EXTRA_USER for ACTION_CHANGE_DEFAULT" am: 57238d653c
am: 1a16975a36
am: b7077ab55f
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1977698 Change-Id: Icc629addf9f47a48a0da14d105d737a7e9e1348c
This commit is contained in:
@@ -58,7 +58,11 @@ public final class PaymentDefaultDialog extends AlertActivity implements
|
||||
ComponentName component = intent.getParcelableExtra(
|
||||
CardEmulation.EXTRA_SERVICE_COMPONENT);
|
||||
String category = intent.getStringExtra(CardEmulation.EXTRA_CATEGORY);
|
||||
int userId = intent.getIntExtra(CardEmulation.EXTRA_USERID, UserHandle.myUserId());
|
||||
UserHandle userHandle = intent.getParcelableExtra(Intent.EXTRA_USER);
|
||||
if (userHandle == null) {
|
||||
userHandle = UserHandle.CURRENT;
|
||||
}
|
||||
int userId = userHandle.getIdentifier();
|
||||
|
||||
setResult(RESULT_CANCELED);
|
||||
if (!buildDialog(component, category, userId)) {
|
||||
|
Reference in New Issue
Block a user