Set color of update line to red if update is older than six hours.

In Data Usage screen, out-of-date state

Bug: 70950124

Test: manual
Test: make RunSettingsRoboTests
Change-Id: Icf6fafe9ab61a2c1ac3fba2bebf3bd4407c0ecfe
This commit is contained in:
Jan Nordqvist
2018-03-12 15:19:29 -07:00
committed by Sundeep Ghuman
parent a6f6e9c41c
commit 9a65e5fec7
3 changed files with 50 additions and 10 deletions

View File

@@ -219,7 +219,7 @@ public class DataUsageSummaryPreferenceController extends BasePreferenceControll
mCycleStart = rule.start.toEpochSecond() * 1000L;
mCycleEnd = rule.end.toEpochSecond() * 1000L;
}
mSnapshotTime = System.currentTimeMillis() - primaryPlan.getDataUsageTime();
mSnapshotTime = primaryPlan.getDataUsageTime();
}
}
mManageSubscriptionIntent =