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

Commit abfa4692 authored by Taesu Lee's avatar Taesu Lee Committed by android-build-merger
Browse files

Merge "Remove unnecessary calling getApplicationContex()"

am: 2cc5a852

Change-Id: I7239300215f22d9cdd100ba66c7ad9f48f84ecee
parents 16a5ce00 2cc5a852
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -520,7 +520,6 @@ public final class SmsManager {
            throw new IllegalArgumentException("Invalid message body");
        }

        final Context context = ActivityThread.currentApplication().getApplicationContext();
        // We will only show the SMS disambiguation dialog in the case that the message is being
        // persisted. This is for two reasons:
        // 1) Messages that are not persisted are sent by carrier/OEM apps for a specific
@@ -629,7 +628,6 @@ public final class SmsManager {

        final int finalPriority = priority;
        final int finalValidity = validityPeriod;
        final Context context = ActivityThread.currentApplication().getApplicationContext();
        // We will only show the SMS disambiguation dialog in the case that the message is being
        // persisted. This is for two reasons:
        // 1) Messages that are not persisted are sent by carrier/OEM apps for a specific
@@ -933,7 +931,6 @@ public final class SmsManager {
        }

        if (parts.size() > 1) {
            final Context context = ActivityThread.currentApplication().getApplicationContext();
            // We will only show the SMS disambiguation dialog in the case that the message is being
            // persisted. This is for two reasons:
            // 1) Messages that are not persisted are sent by carrier/OEM apps for a specific
@@ -1174,7 +1171,6 @@ public final class SmsManager {
        if (parts.size() > 1) {
            final int finalPriority = priority;
            final int finalValidity = validityPeriod;
            final Context context = ActivityThread.currentApplication().getApplicationContext();
            if (persistMessage) {
                resolveSubscriptionForOperation(new SubscriptionResolverResult() {
                    @Override
@@ -1331,7 +1327,6 @@ public final class SmsManager {
            throw new IllegalArgumentException("Invalid message data");
        }

        final Context context = ActivityThread.currentApplication().getApplicationContext();
        resolveSubscriptionForOperation(new SubscriptionResolverResult() {
            @Override
            public void onSuccess(int subId) {