Use telephony-common

Change-Id: Ic95136fd5934afdd53a08bfd640d40add67fdb44
This commit is contained in:
Wink Saville
2012-06-14 12:33:43 -07:00
parent e9a717fb77
commit 5543404ae0
9 changed files with 18 additions and 13 deletions

View File

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