diff options
author | James Lemieux <jplemieux@google.com> | 2016-12-07 18:17:06 -0800 |
---|---|---|
committer | James Lemieux <jplemieux@google.com> | 2016-12-07 18:17:06 -0800 |
commit | 9e22b586d7bb8930dcb26eb233f740d7223a344a (patch) | |
tree | a1c630bdc90af6300b964a91149ff0504450d66d /src/com/android/deskclock | |
parent | 8a9d0209ff36d5a4acd27be97ed3211abd7a2a8f (diff) | |
download | android_packages_apps_DeskClock-9e22b586d7bb8930dcb26eb233f740d7223a344a.tar.gz android_packages_apps_DeskClock-9e22b586d7bb8930dcb26eb233f740d7223a344a.tar.bz2 android_packages_apps_DeskClock-9e22b586d7bb8930dcb26eb233f740d7223a344a.zip |
Always clear the drop shadow from stopwatch tab when portrait
Bug: 33417907
Change-Id: I0cb1171728d52c5f25c99b5df38b2687d2699532
Diffstat (limited to 'src/com/android/deskclock')
-rw-r--r-- | src/com/android/deskclock/stopwatch/StopwatchFragment.java | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/com/android/deskclock/stopwatch/StopwatchFragment.java b/src/com/android/deskclock/stopwatch/StopwatchFragment.java index 007109ac0..de19e5919 100644 --- a/src/com/android/deskclock/stopwatch/StopwatchFragment.java +++ b/src/com/android/deskclock/stopwatch/StopwatchFragment.java @@ -70,6 +70,7 @@ import static com.android.deskclock.uidata.UiDataModel.Tab.STOPWATCH; * Fragment that shows the stopwatch and recorded laps. */ public final class StopwatchFragment extends DeskClockFragment { + /** Milliseconds between redraws while running. */ private static final int REDRAW_PERIOD_RUNNING = 25; @@ -136,6 +137,8 @@ public final class StopwatchFragment extends DeskClockFragment { final ScrollPositionWatcher scrollPositionWatcher = new ScrollPositionWatcher(); mLapsList.addOnLayoutChangeListener(scrollPositionWatcher); mLapsList.addOnScrollListener(scrollPositionWatcher); + } else { + setTabScrolledToTop(true); } mLapsList.setAdapter(mLapsAdapter); @@ -563,16 +566,6 @@ public final class StopwatchFragment extends DeskClockFragment { } /** - * Tapping the stopwatch text also toggles the stopwatch state, just like the fab. - */ - private final class ToggleStopwatchRunnable implements Runnable { - @Override - public void run() { - toggleStopwatchState(); - } - } - - /** * Acquire or release the wake lock based on the tab state. */ private final class TabWatcher implements TabListener { |