Merge "NFC: Reset Tap&pay summary text if default payment is not set"
am: e990bf3041
Change-Id: I2b2978a82a9dbee948b4e50f2b85978b9ddb58e5
This commit is contained in:
@@ -116,10 +116,11 @@ public class PaymentSettings extends SettingsPreferenceFragment {
|
|||||||
PaymentBackend paymentBackend = new PaymentBackend(mContext);
|
PaymentBackend paymentBackend = new PaymentBackend(mContext);
|
||||||
paymentBackend.refresh();
|
paymentBackend.refresh();
|
||||||
PaymentAppInfo app = paymentBackend.getDefaultApp();
|
PaymentAppInfo app = paymentBackend.getDefaultApp();
|
||||||
|
String summary = null;
|
||||||
if (app != null) {
|
if (app != null) {
|
||||||
mSummaryLoader.setSummary(this, mContext.getString(R.string.payment_summary,
|
summary = mContext.getString(R.string.payment_summary, app.label);
|
||||||
app.label));
|
|
||||||
}
|
}
|
||||||
|
mSummaryLoader.setSummary(this, summary);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user