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

am: a1f5332068

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

View File

@@ -125,10 +125,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);
}
}
}