AI 144592: am: CL 144591 Fix ClassCastException in RadioInfo settings screen.

BUG=1761604
  Original author: lockwood

Automated import of CL 144592
This commit is contained in:
Mike Lockwood
2009-04-05 11:37:45 -07:00
committed by The Android Open Source Project
parent 6bced002bc
commit 5304c7e38f

View File

@@ -619,8 +619,7 @@ public class RadioInfo extends Activity {
} }
private void updateDnsCheckState() { private void updateDnsCheckState() {
GSMPhone gsmPhone = (GSMPhone) phone; dnsCheckState.setText(phone.isDnsCheckDisabled() ?
dnsCheckState.setText(gsmPhone.isDnsCheckDisabled() ?
"0.0.0.0 allowed" :"0.0.0.0 not allowed"); "0.0.0.0 allowed" :"0.0.0.0 not allowed");
} }