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

Commit 57238d65 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Use Intent.EXTRA_USER for ACTION_CHANGE_DEFAULT"

parents e489d46b c7b56875
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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)) {