Bug 717841 part 2 - Fix HistoryQueryTask's time range checks. r=lucasr f=dougt a=dougt

This commit is contained in:
Chris Peterson 2012-01-12 17:38:08 -08:00
parent a41d7efd0e
commit 49931ac044

View File

@ -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;
}