diff --git a/mobile/android/base/AwesomeBarTabs.java b/mobile/android/base/AwesomeBarTabs.java index 920e43ce3a4..76bb359ce72 100644 --- a/mobile/android/base/AwesomeBarTabs.java +++ b/mobile/android/base/AwesomeBarTabs.java @@ -353,9 +353,13 @@ public class AwesomeBarTabs extends TabHost { if (delta < 0) { return HistorySection.TODAY; - } else if (delta > 0 && delta < MS_PER_DAY) { + } + + if (delta < MS_PER_DAY) { return HistorySection.YESTERDAY; - } else if (delta > MS_PER_DAY && delta < MS_PER_WEEK) { + } + + if (delta < MS_PER_WEEK) { return HistorySection.WEEK; }