Loading packages/SystemUI/src/com/android/systemui/statusbar/Clock.java +1 −3 Original line number Original line Diff line number Diff line Loading @@ -25,7 +25,6 @@ import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Canvas; import android.graphics.Typeface; import android.graphics.Typeface; import android.graphics.drawable.Drawable; import android.graphics.drawable.Drawable; import android.os.Handler; import android.text.Spannable; import android.text.Spannable; import android.text.SpannableStringBuilder; import android.text.SpannableStringBuilder; import android.text.format.DateFormat; import android.text.format.DateFormat; Loading @@ -49,7 +48,6 @@ import com.android.internal.R; * minutes. * minutes. */ */ public class Clock extends TextView { public class Clock extends TextView { private final Handler mHandler = new Handler(); private boolean mAttached; private boolean mAttached; private Calendar mCalendar; private Calendar mCalendar; private String mClockFormatString; private String mClockFormatString; Loading Loading @@ -86,7 +84,7 @@ public class Clock extends TextView { filter.addAction(Intent.ACTION_TIMEZONE_CHANGED); filter.addAction(Intent.ACTION_TIMEZONE_CHANGED); filter.addAction(Intent.ACTION_CONFIGURATION_CHANGED); filter.addAction(Intent.ACTION_CONFIGURATION_CHANGED); getContext().registerReceiver(mIntentReceiver, filter, null, mHandler); getContext().registerReceiver(mIntentReceiver, filter, null, getHandler()); } } // NOTE: It's safe to do these after registering the receiver since the receiver always runs // NOTE: It's safe to do these after registering the receiver since the receiver always runs Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/Clock.java +1 −3 Original line number Original line Diff line number Diff line Loading @@ -25,7 +25,6 @@ import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Canvas; import android.graphics.Typeface; import android.graphics.Typeface; import android.graphics.drawable.Drawable; import android.graphics.drawable.Drawable; import android.os.Handler; import android.text.Spannable; import android.text.Spannable; import android.text.SpannableStringBuilder; import android.text.SpannableStringBuilder; import android.text.format.DateFormat; import android.text.format.DateFormat; Loading @@ -49,7 +48,6 @@ import com.android.internal.R; * minutes. * minutes. */ */ public class Clock extends TextView { public class Clock extends TextView { private final Handler mHandler = new Handler(); private boolean mAttached; private boolean mAttached; private Calendar mCalendar; private Calendar mCalendar; private String mClockFormatString; private String mClockFormatString; Loading Loading @@ -86,7 +84,7 @@ public class Clock extends TextView { filter.addAction(Intent.ACTION_TIMEZONE_CHANGED); filter.addAction(Intent.ACTION_TIMEZONE_CHANGED); filter.addAction(Intent.ACTION_CONFIGURATION_CHANGED); filter.addAction(Intent.ACTION_CONFIGURATION_CHANGED); getContext().registerReceiver(mIntentReceiver, filter, null, mHandler); getContext().registerReceiver(mIntentReceiver, filter, null, getHandler()); } } // NOTE: It's safe to do these after registering the receiver since the receiver always runs // NOTE: It's safe to do these after registering the receiver since the receiver always runs Loading