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

Commit e6913669 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

Change-Id: Ide7f75517e06e1c06ab1fe652d6ffb681e13b731
parents e8630bb8 67f80397
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;
        }
    }