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

Commit a38599fb authored by Amit Mahajan's avatar Amit Mahajan Committed by android-build-merger
Browse files

Merge "Avoid UnsupportedOperationException from getDefaultSmsSubscriptionId()"...

Merge "Avoid UnsupportedOperationException from getDefaultSmsSubscriptionId()" into qt-dev am: be063ffb am: 67f80397
am: e6913669

Change-Id: I20da1d7d90f283a219a4c875375f227830d47c9b
parents ad6a98eb e6913669
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1975,9 +1975,11 @@ public final class SmsManager {
     */
    public static int getDefaultSmsSubscriptionId() {
        try {
            return getISmsServiceOrThrow().getPreferredSmsSubscription();
            return getISmsService().getPreferredSmsSubscription();
        } catch (RemoteException e) {
            return SubscriptionManager.INVALID_SUBSCRIPTION_ID;
        } catch (NullPointerException e) {
            return SubscriptionManager.INVALID_SUBSCRIPTION_ID;
        }
    }