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
This commit is contained in:
Hiroki Yamamoto
2017-06-06 20:05:00 +09:00
committed by Hiroki Yamamoto
parent 46f7199cb1
commit a322f6eab3

View File

@@ -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);
}
}
}