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

Commit a322f6ea authored by Hiroki Yamamoto's avatar Hiroki Yamamoto Committed by Hiroki Yamamoto
Browse files

NFC: Reset Tap&pay summary text if default payment is not set

Reset Tap&pay summary text even default payment is null
to show the correct status that is no payment service.

Test: manual
Bug: 62366917
Change-Id: Ida9cf0b205e56163505862498b1ac4d679c2c92a
parent 46f7199c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -116,10 +116,11 @@ public class PaymentSettings extends SettingsPreferenceFragment {
                PaymentBackend paymentBackend = new PaymentBackend(mContext);
                paymentBackend.refresh();
                PaymentAppInfo app = paymentBackend.getDefaultApp();
                String summary = null;
                if (app != null) {
                    mSummaryLoader.setSummary(this, mContext.getString(R.string.payment_summary,
                            app.label));
                    summary = mContext.getString(R.string.payment_summary, app.label);
                }
                mSummaryLoader.setSummary(this, summary);
            }
        }
    }