summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/nfc/PaymentSettings.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings/nfc/PaymentSettings.java')
-rw-r--r--src/com/android/settings/nfc/PaymentSettings.java15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/com/android/settings/nfc/PaymentSettings.java b/src/com/android/settings/nfc/PaymentSettings.java
index 41bcc2c..af569ac 100644
--- a/src/com/android/settings/nfc/PaymentSettings.java
+++ b/src/com/android/settings/nfc/PaymentSettings.java
@@ -55,23 +55,10 @@ public class PaymentSettings extends SettingsPreferenceFragment implements
for (PaymentAppInfo appInfo : appInfos) {
PaymentAppPreference preference =
new PaymentAppPreference(getActivity(), appInfo, this);
- // If for some reason isAuto gets out of sync, clear out app default
preference.setIcon(appInfo.icon);
preference.setTitle(appInfo.caption);
screen.addPreference(preference);
}
- if (appInfos.size() > 1) {
- PaymentAppInfo appInfo = new PaymentAppInfo();
- appInfo.icon = null;
- appInfo.componentName = null;
- appInfo.isDefault = !(mPaymentBackend.getDefaultPaymentApp() != null);
- // Add "Ask every time" option
- PaymentAppPreference preference =
- new PaymentAppPreference(getActivity(), appInfo, this);
- preference.setIcon(null);
- preference.setTitle(R.string.nfc_payment_ask);
- screen.addPreference(preference);
- }
}
setPreferenceScreen(screen);
}
@@ -82,8 +69,6 @@ public class PaymentSettings extends SettingsPreferenceFragment implements
PaymentAppInfo appInfo = (PaymentAppInfo) v.getTag();
if (appInfo.componentName != null) {
mPaymentBackend.setDefaultPaymentApp(appInfo.componentName);
- } else {
- mPaymentBackend.setDefaultPaymentApp(null);
}
refresh();
}