OSDN Git Service

Improve launch time for Apps & notifications page
authortmfang <tmfang@google.com>
Sun, 24 Feb 2019 15:21:58 +0000 (23:21 +0800)
committertmfang <tmfang@google.com>
Tue, 26 Feb 2019 07:08:22 +0000 (15:08 +0800)
commitac74050a7ccbfb0a924ebf06f9dc2ef0109fdd3d
treed1f42edde20313d068d7471a06ab24ac6024b9f2
parent74d549fc1925d3e8ff15210a98f44197e2efb2dc
Improve launch time for Apps & notifications page

In original design, we reload usage data at least thrice
for showing recent apps.

For now, we only reload usage data once in constuctor.
And we reload data again when we are calling updateState.

Test: Open App & notifications page, and then I compare the lauch time
with P platform device.
Fixes: 126013076

Change-Id: Ida769f28a4419125e1948e36658686ee55bf51a5
src/com/android/settings/applications/RecentAppsPreferenceController.java
tests/robotests/src/com/android/settings/applications/RecentAppsPreferenceControllerTest.java