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

Commit 048dffd2 authored by Malcolm Chen's avatar Malcolm Chen Committed by Xiangyu/Malcolm Chen
Browse files

Fix that query format in getSubInfoForIccId is wrong.

Bug: 142550491
Test: manual - using test app to call that API and
check result
Change-Id: I23058e12005cdf9d0b4b26bf388db4cc00b32eee

Change-Id: Id75b6048bd9217ec7ddcfbd0ab2e6570a3f067cb
Merged-In: Id75b6048bd9217ec7ddcfbd0ab2e6570a3f067cb
parent 811557c5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -412,7 +412,8 @@ public class SubscriptionController extends ISub.Stub {
     * @return null if there isn't a match, or subscription info if there is one.
     */
    public SubscriptionInfo getSubInfoForIccId(String iccId) {
        List<SubscriptionInfo> info = getSubInfo(SubscriptionManager.ICC_ID + "=" + iccId, null);
        List<SubscriptionInfo> info = getSubInfo(
                SubscriptionManager.ICC_ID + "=\'" + iccId + "\'", null);
        if (info == null || info.size() == 0) return null;
        // Should be at most one subscription with the iccid.
        return info.get(0);