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:
committed by
Hiroki Yamamoto
parent
46f7199cb1
commit
a322f6eab3
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user