OSDN Git Service

Show app usage data for the correct cycle.
authorDoris Ling <dling@google.com>
Sat, 9 Feb 2019 01:22:32 +0000 (17:22 -0800)
committerDoris Ling <dling@google.com>
Wed, 13 Feb 2019 00:53:35 +0000 (16:53 -0800)
commit3d238da4b5093ade28b2ec2e0ed8fcc36b72aa0a
tree8028294def0e0629450a3e6c2fb2d11dc64e3afd
parentca5786fd2746bfad83dc34161dd741e9df1dc608
Show app usage data for the correct cycle.

- when launching the app data usage from the data usage list, pass the
info about the current cycle that the user is looking at, and select
the same cycle by default when the page is first launched to match the
data on the previous page.

Change-Id: Ic91bd8ee78db4d76551dff4b132c1b74d4b3c19d
Fixes: 123192721
Test: make RunSettingsRoboTests
src/com/android/settings/datausage/AppDataUsage.java
src/com/android/settings/datausage/DataUsageList.java
tests/robotests/src/com/android/settings/datausage/AppDataUsageTest.java
tests/robotests/src/com/android/settings/datausage/DataUsageListTest.java