Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e7415fe authored by Brad Lassey's avatar Brad Lassey
Browse files

Ensure polling loop filters are upper case when adding to the map.

Bug: 395690020
Test: tested by CTS
Flag: EXEMPT bug fix
Change-Id: I2d0fd1d23978122c98d722257726c905f35b28fe
parent d1ea0b7a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -817,7 +817,7 @@ public final class ApduServiceInfo implements Parcelable {
        if (!mOnHost && !autoTransact) {
            return;
        }
        mAutoTransact.put(pollingLoopFilter, autoTransact);
        mAutoTransact.put(pollingLoopFilter.toUpperCase(Locale.ROOT), autoTransact);
    }

    /**
@@ -845,7 +845,8 @@ public final class ApduServiceInfo implements Parcelable {
        if (!mOnHost && !autoTransact) {
            return;
        }
        mAutoTransactPatterns.put(Pattern.compile(pollingLoopPatternFilter), autoTransact);
        mAutoTransactPatterns.put(Pattern.compile(
                pollingLoopPatternFilter.toUpperCase(Locale.ROOT)), autoTransact);
    }

    /**