DO NOT MERGE Set Settings.Global.CELL_ON default to CELL_ON_FLAG if not defined.
Similar to ag/1802399
Fixes: b/35031152
TEST: Factory reset the watch then pair. Dial outgoing call from watch
should succeed even the radio power is turned off by cell mediator.
Change-Id: I0020054d8b6c830e48f9899df7fefa0483322966
diff --git a/src/com/android/services/telephony/TelephonyConnectionService.java b/src/com/android/services/telephony/TelephonyConnectionService.java
index d27054a..612600e 100644
--- a/src/com/android/services/telephony/TelephonyConnectionService.java
+++ b/src/com/android/services/telephony/TelephonyConnectionService.java
@@ -284,7 +284,7 @@
R.bool.config_allowRadioPowerDownOnBluetooth);
final int cellOn = Settings.Global.getInt(context.getContentResolver(),
Settings.Global.CELL_ON,
- PhoneConstants.CELL_OFF_FLAG);
+ PhoneConstants.CELL_ON_FLAG);
return (allowed && cellOn == PhoneConstants.CELL_ON_FLAG && !isRadioOn());
}