OSDN Git Service

Move Wifi/P2p service components under services
authorVinit Deshapnde <vinitd@google.com>
Thu, 5 Dec 2013 02:28:45 +0000 (18:28 -0800)
committerVinit Deshapnde <vinitd@google.com>
Thu, 12 Dec 2013 00:05:46 +0000 (16:05 -0800)
Some methods need to be public, since frameworks/base complies before
frameworks/base/services; and services takes build dependency on base.

Similar issue exists with WifiEnterpriseConfig constants.

Bug: 9907308
Change-Id: Ied0e3dee0b25c939067dbc66867a9814b3b3b68e

src/com/android/settings/wifi/AdvancedWifiSettings.java

index bbcd50d..4accb04 100644 (file)
@@ -22,7 +22,6 @@ import android.content.Intent;
 import android.content.IntentFilter;
 import android.net.wifi.WifiInfo;
 import android.net.wifi.WifiManager;
-import android.net.wifi.WifiWatchdogStateMachine;
 import android.os.Bundle;
 import android.preference.CheckBoxPreference;
 import android.preference.ListPreference;
@@ -112,7 +111,7 @@ public class AdvancedWifiSettings extends SettingsPreferenceFragment
             } else {
                 poorNetworkDetection.setChecked(Global.getInt(getContentResolver(),
                         Global.WIFI_WATCHDOG_POOR_NETWORK_TEST_ENABLED,
-                        WifiWatchdogStateMachine.DEFAULT_POOR_NETWORK_AVOIDANCE_ENABLED ?
+                        WifiManager.DEFAULT_POOR_NETWORK_AVOIDANCE_ENABLED ?
                         1 : 0) == 1);
             }
         }