summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorPedlar <pedlar88@gmail.com>2010-10-17 22:23:20 -0400
committerPedlar <pedlar88@gmail.com>2010-10-17 22:31:47 -0400
commit2d2cdd0287dff37c938fc72384224059d451a652 (patch)
tree11fb1e1c4cbb3c5fa6ee5c8067adcc58e0817a58 /services
parent7bb79fb01308f9eac308d2f397b0565a9d1fe082 (diff)
downloadframeworks_base-2d2cdd0287dff37c938fc72384224059d451a652.zip
frameworks_base-2d2cdd0287dff37c938fc72384224059d451a652.tar.gz
frameworks_base-2d2cdd0287dff37c938fc72384224059d451a652.tar.bz2
Make it so the widget shows as on by default.
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/status/StatusBarService.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/services/java/com/android/server/status/StatusBarService.java b/services/java/com/android/server/status/StatusBarService.java
index 7c99b84..f19aefb 100644
--- a/services/java/com/android/server/status/StatusBarService.java
+++ b/services/java/com/android/server/status/StatusBarService.java
@@ -279,8 +279,6 @@ public class StatusBarService extends IStatusBar.Stub
Drawable expBarNotifTitleDrawable;
- private WifiManager mWifiManager = null;
- private BluetoothAdapter mBluetoothAdapter = null;
// for disabling the status bar
ArrayList<DisableRecord> mDisableRecords = new ArrayList<DisableRecord>();
int mDisabled = 0;
@@ -437,8 +435,6 @@ public class StatusBarService extends IStatusBar.Stub
lp.windowAnimations = R.style.Animation_StatusBar;
WindowManagerImpl.getDefault().addView(view, lp);
- mWifiManager = (WifiManager)mContext.getSystemService(Context.WIFI_SERVICE);
- mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
setupPowerWidget();
}
@@ -2368,7 +2364,7 @@ public class StatusBarService extends IStatusBar.Stub
}
boolean powerWidget = Settings.System.getInt(mContext.getContentResolver(),
- Settings.System.EXPANDED_VIEW_WIDGET, 0) == 1;
+ Settings.System.EXPANDED_VIEW_WIDGET, 1) == 1;
if(!powerWidget) {
mExpandedView.findViewById(R.id.exp_power_stat).
setVisibility(View.GONE);