Fixed bug where scrolling the ViewPager and quickly clicking the FAB called the previous Fragment's onFabClick()

This commit is contained in:
Phillip Hsu
2016-08-14 00:41:25 -07:00
parent 15afc01735
commit 04158bb6a8
2 changed files with 18 additions and 23 deletions
@@ -161,9 +161,6 @@ public class StopwatchFragment extends RecyclerViewFragment<
}
} else {
if (mStartTime == 0) {
// TODO: I'm strongly considering inserting the very first lap alone.
// We'll need to tell the adapter to just hide the corresponding VH
// until a second lap is added.
// addNewLap() won't call through unless chronometer is running, which
// we can't start until we compute mStartTime
mCurrentLap = new Lap();