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

Commit 0466486b authored by Luca Stefani's avatar Luca Stefani Committed by Dan Pasanen
Browse files

Don't show sim pick activity if device is single SIM

* The activity is triggered when the default SMS app
  isn't com.android.messaging without checking if the device is
  single SIM or not

Change-Id: I6ccc1338a97a11ea6e7ea232519e0d768bbb954d
parent 6e491545
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -327,9 +327,13 @@ public class UiccSmsController extends ISms.Stub {
            }
        }

        if (telephonyManager.getSimCount() > 1) {
            return !canCurrentAppHandleAlwaysAsk;
        }

        return false;
    }

    @Override
    public String getImsSmsFormatForSubscriber(int subId) {
        IccSmsInterfaceManager iccSmsIntMgr = getIccSmsInterfaceManager(subId);