Merge "Remove unnecessary calling getApplicationContex()" am: 2cc5a85213
am: abfa4692f3
Change-Id: I20978815f3c9aa4dfb79cf3ec320f389209cdc3d
This commit is contained in:
@@ -520,7 +520,6 @@ public final class SmsManager {
|
|||||||
throw new IllegalArgumentException("Invalid message body");
|
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
|
// We will only show the SMS disambiguation dialog in the case that the message is being
|
||||||
// persisted. This is for two reasons:
|
// persisted. This is for two reasons:
|
||||||
// 1) Messages that are not persisted are sent by carrier/OEM apps for a specific
|
// 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 finalPriority = priority;
|
||||||
final int finalValidity = validityPeriod;
|
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
|
// We will only show the SMS disambiguation dialog in the case that the message is being
|
||||||
// persisted. This is for two reasons:
|
// persisted. This is for two reasons:
|
||||||
// 1) Messages that are not persisted are sent by carrier/OEM apps for a specific
|
// 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) {
|
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
|
// We will only show the SMS disambiguation dialog in the case that the message is being
|
||||||
// persisted. This is for two reasons:
|
// persisted. This is for two reasons:
|
||||||
// 1) Messages that are not persisted are sent by carrier/OEM apps for a specific
|
// 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) {
|
if (parts.size() > 1) {
|
||||||
final int finalPriority = priority;
|
final int finalPriority = priority;
|
||||||
final int finalValidity = validityPeriod;
|
final int finalValidity = validityPeriod;
|
||||||
final Context context = ActivityThread.currentApplication().getApplicationContext();
|
|
||||||
if (persistMessage) {
|
if (persistMessage) {
|
||||||
resolveSubscriptionForOperation(new SubscriptionResolverResult() {
|
resolveSubscriptionForOperation(new SubscriptionResolverResult() {
|
||||||
@Override
|
@Override
|
||||||
@@ -1331,7 +1327,6 @@ public final class SmsManager {
|
|||||||
throw new IllegalArgumentException("Invalid message data");
|
throw new IllegalArgumentException("Invalid message data");
|
||||||
}
|
}
|
||||||
|
|
||||||
final Context context = ActivityThread.currentApplication().getApplicationContext();
|
|
||||||
resolveSubscriptionForOperation(new SubscriptionResolverResult() {
|
resolveSubscriptionForOperation(new SubscriptionResolverResult() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int subId) {
|
public void onSuccess(int subId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user