am 5bff5517: Merge "Refresh the status bar clock format on user switch." into jb-mr1.1-dev
* commit '5bff551710d2f2b9d7c6ea814b18b042ee0fe663': Refresh the status bar clock format on user switch.
This commit is contained in:
@@ -45,8 +45,7 @@ import java.util.TimeZone;
|
||||
import com.android.internal.R;
|
||||
|
||||
/**
|
||||
* This widget display an analogic clock with two hands for hours and
|
||||
* minutes.
|
||||
* Digital clock for the status bar.
|
||||
*/
|
||||
public class Clock extends TextView {
|
||||
private boolean mAttached;
|
||||
@@ -84,6 +83,7 @@ public class Clock extends TextView {
|
||||
filter.addAction(Intent.ACTION_TIME_CHANGED);
|
||||
filter.addAction(Intent.ACTION_TIMEZONE_CHANGED);
|
||||
filter.addAction(Intent.ACTION_CONFIGURATION_CHANGED);
|
||||
filter.addAction(Intent.ACTION_USER_SWITCHED);
|
||||
|
||||
getContext().registerReceiver(mIntentReceiver, filter, null, getHandler());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user