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

This commit is contained in:
Treehugger Robot
2017-06-06 19:12:53 +00:00
committed by Gerrit Code Review

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