Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3584116c authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "Make it so the widget shows as on by default." into froyo

parents 93bf54b5 2d2cdd02
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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);