Use telephony-common
Change-Id: Ic95136fd5934afdd53a08bfd640d40add67fdb44
This commit is contained in:
@@ -56,6 +56,7 @@ import android.widget.TextView;
|
||||
|
||||
import com.android.internal.telephony.ITelephony;
|
||||
import com.android.internal.telephony.Phone;
|
||||
import com.android.internal.telephony.PhoneConstants;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -637,7 +638,7 @@ public class CryptKeeper extends Activity implements TextView.OnEditorActionList
|
||||
*/
|
||||
private final void setAirplaneModeIfNecessary() {
|
||||
final boolean isLteDevice =
|
||||
TelephonyManager.getDefault().getLteOnCdmaMode() == Phone.LTE_ON_CDMA_TRUE;
|
||||
TelephonyManager.getDefault().getLteOnCdmaMode() == PhoneConstants.LTE_ON_CDMA_TRUE;
|
||||
if (!isLteDevice) {
|
||||
Log.d(TAG, "Going into airplane mode.");
|
||||
Settings.System.putInt(getContentResolver(), Settings.System.AIRPLANE_MODE_ON, 1);
|
||||
|
Reference in New Issue
Block a user