OSDN Git Service

AI 144592: am: CL 144591 Fix ClassCastException in RadioInfo settings screen.
authorMike Lockwood <>
Sun, 5 Apr 2009 18:37:45 +0000 (11:37 -0700)
committerThe Android Open Source Project <initial-contribution@android.com>
Sun, 5 Apr 2009 18:37:45 +0000 (11:37 -0700)
  BUG=1761604
  Original author: lockwood

Automated import of CL 144592

src/com/android/settings/RadioInfo.java

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