OSDN Git Service

Wifi: Fix crash when changing screen orientation in Regulatory Domain list.
authorMike Lockwood <lockwood@android.com>
Tue, 28 Jul 2009 20:15:50 +0000 (13:15 -0700)
committerMike Lockwood <lockwood@android.com>
Tue, 28 Jul 2009 20:15:50 +0000 (13:15 -0700)
Signed-off-by: Mike Lockwood <lockwood@android.com>
src/com/android/settings/wifi/AdvancedSettings.java

index f48e017..2adf072 100644 (file)
@@ -69,6 +69,13 @@ public class AdvancedSettings extends PreferenceActivity
             Preference preference = findPreference(mPreferenceKeys[i]);
             preference.setOnPreferenceChangeListener(this);
         }
+
+        /*
+         * Fix the Run-time IllegalStateException that ListPreference requires an entries
+         * array and an entryValues array, this exception occurs when user open/close the
+         * slider in the Regulatory domain dialog.
+         */
+        initNumChannelsPreference();
     }
     
     @Override