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

Commit 1524a8ca authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Correct null UserHandle handling for ACTION_CHANGE_DEFAULT" into tm-dev am: 0469e3b5

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17180788

Change-Id: I8598fb0a0c9ec5ac48a0868b50bc56d16f58d02d
parents ad294121 0469e3b5
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -59,10 +59,13 @@ public final class PaymentDefaultDialog extends AlertActivity implements
                CardEmulation.EXTRA_SERVICE_COMPONENT);
        String category = intent.getStringExtra(CardEmulation.EXTRA_CATEGORY);
        UserHandle userHandle = intent.getParcelableExtra(Intent.EXTRA_USER);

        int userId;
        if (userHandle == null) {
            userHandle = UserHandle.CURRENT;
            userId = UserHandle.myUserId();
        } else {
            userId = userHandle.getIdentifier();
        }
        int userId = userHandle.getIdentifier();

        setResult(RESULT_CANCELED);
        if (!buildDialog(component, category, userId)) {