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

am: 77452b8a57

Change-Id: I19237cb1f24dc1f0b127b2bd2476ee1f3a28b0bb
This commit is contained in:
Hiroki Yamamoto
2017-06-06 19:34:49 +00:00
committed by android-build-merger

View File

@@ -126,10 +126,11 @@ public class PaymentSettings extends SettingsPreferenceFragment implements Index
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);
}
}
}