Skip to content

Commit ce4f5e5

Browse files
committed
Refresh the status bar clock format on user switch.
Bug: 7490931 Change-Id: Ifad46ec7cee40aa5a622ee2621fc425835366e32
1 parent 5052805 commit ce4f5e5

File tree

1 file changed

+2
-2
lines changed
  • packages/SystemUI/src/com/android/systemui/statusbar/policy

1 file changed

+2
-2
lines changed

packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@
4545
import com.android.internal.R;
4646

4747
/**
48-
* This widget display an analogic clock with two hands for hours and
49-
* minutes.
48+
* Digital clock for the status bar.
5049
*/
5150
public class Clock extends TextView {
5251
private boolean mAttached;
@@ -84,6 +83,7 @@ protected void onAttachedToWindow() {
8483
filter.addAction(Intent.ACTION_TIME_CHANGED);
8584
filter.addAction(Intent.ACTION_TIMEZONE_CHANGED);
8685
filter.addAction(Intent.ACTION_CONFIGURATION_CHANGED);
86+
filter.addAction(Intent.ACTION_USER_SWITCHED);
8787

8888
getContext().registerReceiver(mIntentReceiver, filter, null, getHandler());
8989
}

0 commit comments

Comments
 (0)