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

Commit e0a38911 authored by Martijn Coenen's avatar Martijn Coenen
Browse files

NFC: Allow to get result from tap-pay default dialog.

Change-Id: Ic9e88dca5577a4f553dca56e0ff387c1e96f2ed2
parent 6ee5b450
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@ public final class PaymentDefaultDialog extends AlertActivity implements
                CardEmulationManager.EXTRA_SERVICE_COMPONENT);
        String category = intent.getStringExtra(CardEmulationManager.EXTRA_CATEGORY);

        setResult(RESULT_CANCELED);
        if (!buildDialog(component, category)) {
            finish();
        }
@@ -62,6 +63,7 @@ public final class PaymentDefaultDialog extends AlertActivity implements
            case BUTTON_POSITIVE:
                mBackend.setDefaultPaymentApp(mNewDefault);
                mBackend.setAutoPaymentMode(true);
                setResult(RESULT_OK);
                break;
            case BUTTON_NEGATIVE:
                break;