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

am: e990bf3041

Change-Id: I2b2978a82a9dbee948b4e50f2b85978b9ddb58e5
This commit is contained in:
Hiroki Yamamoto
2017-06-06 19:22:09 +00:00
committed by android-build-merger

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