Rename calls to isGlobalModeEnabled

Test: atest FrameworksTelephonyTests
Bug: 148603998
Change-Id: If302350cfea7b2cd2cd25906dd1dd6a6d192a5d6
This commit is contained in:
Sarah Chin
2020-02-27 15:52:18 -08:00
parent 0c3bd003d0
commit 77dea1beb0
6 changed files with 10 additions and 10 deletions

View File

@@ -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);