@@ -136,7 +136,7 @@ public class PhoneStatusBar extends StatusBar {
136136 BatteryController mBatteryController ;
137137 LocationController mLocationController ;
138138 NetworkController mNetworkController ;
139-
139+
140140 int mNaturalBarHeight = -1 ;
141141 int mIconSize = -1 ;
142142 int mIconHPadding = -1 ;
@@ -168,7 +168,7 @@ public class PhoneStatusBar extends StatusBar {
168168
169169 // drag bar
170170 CloseDragHandle mCloseView ;
171-
171+
172172 // all notifications
173173 NotificationData mNotificationData = new NotificationData ();
174174 NotificationRowLayout mPile ;
@@ -298,7 +298,7 @@ protected View makeStatusBarView() {
298298 try {
299299 boolean showNav = mWindowManager .hasNavigationBar ();
300300 if (showNav ) {
301- mNavigationBarView =
301+ mNavigationBarView =
302302 (NavigationBarView ) View .inflate (context , R .layout .navigation_bar , null );
303303
304304 mNavigationBarView .setDisabledFlags (mDisabled );
@@ -352,11 +352,11 @@ protected View makeStatusBarView() {
352352 mBatteryController = new BatteryController (mContext );
353353 mBatteryController .addIconView ((ImageView )sb .findViewById (R .id .battery ));
354354 mNetworkController = new NetworkController (mContext );
355- final SignalClusterView signalCluster =
355+ final SignalClusterView signalCluster =
356356 (SignalClusterView )sb .findViewById (R .id .signal_cluster );
357357 mNetworkController .addSignalCluster (signalCluster );
358358 signalCluster .setNetworkController (mNetworkController );
359- // final ImageView wimaxRSSI =
359+ // final ImageView wimaxRSSI =
360360// (ImageView)sb.findViewById(R.id.wimax_signal);
361361// if (wimaxRSSI != null) {
362362// mNetworkController.addWimaxIconView(wimaxRSSI);
@@ -1085,8 +1085,8 @@ public void disable(int state) {
10851085 }
10861086 }
10871087
1088- if ((diff & (StatusBarManager .DISABLE_HOME
1089- | StatusBarManager .DISABLE_RECENT
1088+ if ((diff & (StatusBarManager .DISABLE_HOME
1089+ | StatusBarManager .DISABLE_RECENT
10901090 | StatusBarManager .DISABLE_BACK )) != 0 ) {
10911091 // the nav bar will take care of these
10921092 if (mNavigationBarView != null ) mNavigationBarView .setDisabledFlags (state );
@@ -1204,7 +1204,7 @@ public void animateCollapse() {
12041204 public void animateCollapse (boolean excludeRecents ) {
12051205 animateCollapse (excludeRecents , 1.0f );
12061206 }
1207-
1207+
12081208 public void animateCollapse (boolean excludeRecents , float velocityMultiplier ) {
12091209 if (SPEW ) {
12101210 Slog .d (TAG , "animateCollapse(): mExpanded=" + mExpanded
@@ -1516,8 +1516,8 @@ boolean interceptTouchEvent(MotionEvent event) {
15161516 }
15171517
15181518 if (CHATTY ) {
1519- Slog .d (TAG , String .format ("gesture: vraw=(%f,%f) vnorm=(%f,%f) vlinear=%f" ,
1520- mVelocityTracker .getXVelocity (),
1519+ Slog .d (TAG , String .format ("gesture: vraw=(%f,%f) vnorm=(%f,%f) vlinear=%f" ,
1520+ mVelocityTracker .getXVelocity (),
15211521 mVelocityTracker .getYVelocity (),
15221522 xVel , yVel ,
15231523 vel ));
@@ -1795,7 +1795,7 @@ public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
17951795 StatusBarIconView ic = (StatusBarIconView ) mStatusIcons .getChildAt (i );
17961796 pw .println (" [" + i + "] icon=" + ic );
17971797 }
1798-
1798+
17991799 if (false ) {
18001800 pw .println ("see the logcat for a dump of the views we have created." );
18011801 // must happen on ui thread
@@ -1970,10 +1970,10 @@ else if (expandedPosition == EXPANDED_LEAVE_ALONE) {
19701970 - (mTrackingParams .height -closePos ) - contentsBottom ;
19711971
19721972 if (SPEW ) {
1973- Slog .d (PhoneStatusBar .TAG ,
1973+ Slog .d (PhoneStatusBar .TAG ,
19741974 "pos=" + pos +
19751975 " trackingHeight=" + mTrackingView .getHeight () +
1976- " (trackingParams.height - closePos)=" +
1976+ " (trackingParams.height - closePos)=" +
19771977 (mTrackingParams .height - closePos ) +
19781978 " contentsBottom=" + contentsBottom );
19791979 }
@@ -2048,7 +2048,7 @@ void updateExpandedSize() {
20482048 mExpandedDialog .getWindow ().setAttributes (mExpandedParams );
20492049 }
20502050 if (DEBUG ) {
2051- Slog .d (TAG , "updateExpandedSize: height=" + mExpandedParams .height + " " +
2051+ Slog .d (TAG , "updateExpandedSize: height=" + mExpandedParams .height + " " +
20522052 (mExpandedVisible ? "VISIBLE" :"INVISIBLE" ));
20532053 }
20542054 }
@@ -2188,6 +2188,11 @@ public void run() {
21882188
21892189 private View .OnClickListener mSettingsButtonListener = new View .OnClickListener () {
21902190 public void onClick (View v ) {
2191+ try {
2192+ // Dismiss the lock screen when Settings starts.
2193+ ActivityManagerNative .getDefault ().dismissKeyguardOnNextActivity ();
2194+ } catch (RemoteException e ) {
2195+ }
21912196 v .getContext ().startActivity (new Intent (Settings .ACTION_SETTINGS )
21922197 .setFlags (Intent .FLAG_ACTIVITY_NEW_TASK ));
21932198 animateCollapse ();
@@ -2237,7 +2242,7 @@ void updateResources() {
22372242
22382243 loadDimens ();
22392244 }
2240-
2245+
22412246 protected void loadDimens () {
22422247 final Resources res = mContext .getResources ();
22432248
0 commit comments