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

Commit a59a01ab authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change I43f72dd1 into eclair

* changes:
  Don't block TIME_TICK broadcasts in the DigitalClock widget.
parents ad431ad8 f60e108f
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -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 {
@@ -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 */