Remove unnecessary methods from MmsUtils am: c9e85fd21a am: b9dd11dd77 am: 742b382d83 am: 3aae6cf088
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Messaging/+/1339795 Change-Id: I3b694db3a215a3bed07620a4340f2652da353a47
This commit is contained in:
@@ -1111,20 +1111,6 @@ public class MmsUtils {
|
|||||||
return subject;
|
return subject;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return Whether the data roaming is enabled
|
|
||||||
*/
|
|
||||||
private static boolean isDataRoamingEnabled() {
|
|
||||||
boolean dataRoamingEnabled = false;
|
|
||||||
final ContentResolver cr = Factory.get().getApplicationContext().getContentResolver();
|
|
||||||
if (OsUtil.isAtLeastJB_MR1()) {
|
|
||||||
dataRoamingEnabled = (Settings.Global.getInt(cr, Settings.Global.DATA_ROAMING, 0) != 0);
|
|
||||||
} else {
|
|
||||||
dataRoamingEnabled = (Settings.System.getInt(cr, Settings.System.DATA_ROAMING, 0) != 0);
|
|
||||||
}
|
|
||||||
return dataRoamingEnabled;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Whether to auto retrieve MMS
|
* @return Whether to auto retrieve MMS
|
||||||
*/
|
*/
|
||||||
@@ -2051,16 +2037,6 @@ public class MmsUtils {
|
|||||||
return !phoneUtils.isAirplaneModeOn();
|
return !phoneUtils.isAirplaneModeOn();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isMobileDataEnabled(final int subId) {
|
|
||||||
final PhoneUtils phoneUtils = PhoneUtils.get(subId);
|
|
||||||
return phoneUtils.isMobileDataEnabled();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean isAirplaneModeOn(final int subId) {
|
|
||||||
final PhoneUtils phoneUtils = PhoneUtils.get(subId);
|
|
||||||
return phoneUtils.isAirplaneModeOn();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static StatusPlusUri sendMmsMessage(final Context context, final int subId,
|
public static StatusPlusUri sendMmsMessage(final Context context, final int subId,
|
||||||
final Uri messageUri, final Bundle extras) {
|
final Uri messageUri, final Bundle extras) {
|
||||||
int status = MMS_REQUEST_MANUAL_RETRY;
|
int status = MMS_REQUEST_MANUAL_RETRY;
|
||||||
|
|||||||
Reference in New Issue
Block a user