summaryrefslogtreecommitdiffstats
path: root/core/java/android
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2013-08-09 20:47:49 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-08-09 20:50:52 +0000
commit4bcc8ee682bb879f1020942be03616b506d2c802 (patch)
tree5397528cb3a5d59708b3376cbd1f2eb70b27e431 /core/java/android
parentbe11c364e77a9d805cde9bfe5530cbc7b2afd3aa (diff)
parent62c196abd217c2471dc23d8975f84727560bafb9 (diff)
downloadframeworks_base-4bcc8ee682bb879f1020942be03616b506d2c802.zip
frameworks_base-4bcc8ee682bb879f1020942be03616b506d2c802.tar.gz
frameworks_base-4bcc8ee682bb879f1020942be03616b506d2c802.tar.bz2
Merge "NFC: always upper-case parsed AIDs." into klp-dev
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/nfc/cardemulation/ApduServiceInfo.java3
-rw-r--r--core/java/android/provider/Settings.java17
2 files changed, 19 insertions, 1 deletions
diff --git a/core/java/android/nfc/cardemulation/ApduServiceInfo.java b/core/java/android/nfc/cardemulation/ApduServiceInfo.java
index ffa7d7e..3f7e3ef 100644
--- a/core/java/android/nfc/cardemulation/ApduServiceInfo.java
+++ b/core/java/android/nfc/cardemulation/ApduServiceInfo.java
@@ -188,7 +188,8 @@ public final class ApduServiceInfo implements Parcelable {
currentGroup != null) {
final TypedArray a = res.obtainAttributes(attrs,
com.android.internal.R.styleable.AidFilter);
- String aid = a.getString(com.android.internal.R.styleable.AidFilter_name);
+ String aid = a.getString(com.android.internal.R.styleable.AidFilter_name).
+ toUpperCase();
if (isValidAid(aid) && !currentGroup.aids.contains(aid)) {
currentGroup.aids.add(aid);
mAids.add(aid);
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 4865fd0..585115a 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -644,6 +644,23 @@ public final class Settings {
"android.settings.NFCSHARING_SETTINGS";
/**
+ * Activity Action: Show NFC Tap & Pay settings
+ * <p>
+ * This shows UI that allows the user to configure Tap&Pay
+ * settings.
+ * <p>
+ * In some cases, a matching Activity may not exist, so ensure you
+ * safeguard against this.
+ * <p>
+ * Input: Nothing.
+ * <p>
+ * Output: Nothing
+ */
+ @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
+ public static final String ACTION_NFC_PAYMENT_SETTINGS =
+ "android.settings.NFC_PAYMENT_SETTINGS";
+
+ /**
* Activity Action: Show Daydream settings.
* <p>
* In some cases, a matching Activity may not exist, so ensure you