OSDN Git Service

Create a preference controller for "App info"
authortmfang <tmfang@google.com>
Mon, 25 Feb 2019 10:12:24 +0000 (18:12 +0800)
committertmfang <tmfang@google.com>
Tue, 26 Feb 2019 11:34:46 +0000 (19:34 +0800)
commit826879ed63bae0b459aeb7e6d42400d9c7f1b499
tree586047ca2b94ab55dad187d3840cecce7d4328a6
parentcabe72cf7b0a4df2c71191934aa371706f39b473
Create a preference controller for "App info"

We try to avoid managing too many preferences in a controller.
So, we create another controller to manage all apps info preference.

RecentAppsPreferenceController and AllAppsInfoPreferenceController
share same state of recent apps in order to improve the performance.

Test: visual, robo test
Fixes: 126134996
Change-Id: I1d8a175b213831415797437c64fd9d432864f9d3
res/xml/app_and_notification.xml
src/com/android/settings/applications/AllAppsInfoPreferenceController.java [new file with mode: 0644]
src/com/android/settings/applications/AppAndNotificationDashboardFragment.java
src/com/android/settings/applications/RecentAppsPreferenceController.java
tests/robotests/src/com/android/settings/applications/AllAppsInfoPreferenceControllerTest.java [new file with mode: 0644]
tests/robotests/src/com/android/settings/applications/RecentAppsPreferenceControllerTest.java