Loading core/java/com/android/internal/widget/DigitalClock.java +7 −2 Original line number Diff line number Diff line Loading @@ -61,8 +61,13 @@ public class DigitalClock extends LinearLayout { Intent.ACTION_TIMEZONE_CHANGED)) { mCalendar = Calendar.getInstance(); } // Post a runnable to avoid blocking the broadcast. mHandler.post(new Runnable() { public void run() { updateTime(); } }); } }; static class AmPm { Loading Loading @@ -133,7 +138,7 @@ public class DigitalClock extends LinearLayout { filter.addAction(Intent.ACTION_TIME_TICK); filter.addAction(Intent.ACTION_TIME_CHANGED); filter.addAction(Intent.ACTION_TIMEZONE_CHANGED); mContext.registerReceiver(mIntentReceiver, filter, null, mHandler); mContext.registerReceiver(mIntentReceiver, filter); } /* monitor 12/24-hour display preference */ Loading Loading
core/java/com/android/internal/widget/DigitalClock.java +7 −2 Original line number Diff line number Diff line Loading @@ -61,8 +61,13 @@ public class DigitalClock extends LinearLayout { Intent.ACTION_TIMEZONE_CHANGED)) { mCalendar = Calendar.getInstance(); } // Post a runnable to avoid blocking the broadcast. mHandler.post(new Runnable() { public void run() { updateTime(); } }); } }; static class AmPm { Loading Loading @@ -133,7 +138,7 @@ public class DigitalClock extends LinearLayout { filter.addAction(Intent.ACTION_TIME_TICK); filter.addAction(Intent.ACTION_TIME_CHANGED); filter.addAction(Intent.ACTION_TIMEZONE_CHANGED); mContext.registerReceiver(mIntentReceiver, filter, null, mHandler); mContext.registerReceiver(mIntentReceiver, filter); } /* monitor 12/24-hour display preference */ Loading