Rename calls to isGlobalModeEnabled
Test: atest FrameworksTelephonyTests Bug: 148603998 Change-Id: If302350cfea7b2cd2cd25906dd1dd6a6d192a5d6
This commit is contained in:
@@ -915,7 +915,7 @@ public class CryptKeeper extends Activity implements TextView.OnEditorActionList
|
||||
* phone that has no encryption.
|
||||
*/
|
||||
private final void setAirplaneModeIfNecessary() {
|
||||
if (!getTelephonyManager().isGlobalModeEnabled()) {
|
||||
if (!getTelephonyManager().isLteCdmaEvdoGsmWcdmaEnabled()) {
|
||||
Log.d(TAG, "Going into airplane mode.");
|
||||
Settings.Global.putInt(getContentResolver(), Settings.Global.AIRPLANE_MODE_ON, 1);
|
||||
final Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED);
|
||||
|
Reference in New Issue
Block a user