OSDN Git Service

Rearrange a few settings into System category page.
authorFan Zhang <zhfan@google.com>
Thu, 29 Sep 2016 21:37:14 +0000 (14:37 -0700)
committerFan Zhang <zhfan@google.com>
Fri, 30 Sep 2016 23:03:46 +0000 (16:03 -0700)
commitcc335d9509076fdead4eaf8d0463062f45f89e75
tree3bc043bb35b0513758aad91b2e1cb8e02e0618ec
parent9fc9f0f1770638ff6c378a1771ad168d800f8656
Rearrange a few settings into System category page.

- Use activity-alias to define which activity shows up in what category.
  We choose activity-alias because it creates a reference to UI we need
  without having to define a new set of intent-filter and/or category
  keys. This reduces maintainence in the long run. We should merge
  metadata from activity-alias into targetActivity when cleaning up.

- Created new System dashboard activity that hosts all system category
  tiles dynamically, and a static tile for checking system update.

Bug: 31781480
Test: manual
Test: make RunSettingsRoboTests -j40
Change-Id: Ia2d762e3e1aebd17423a395c5e6c286dc3326492
AndroidManifest.xml
res/xml/system_dashboard_fragment.xml [new file with mode: 0644]
src/com/android/settings/Settings.java
src/com/android/settings/SettingsActivity.java
src/com/android/settings/Utils.java
src/com/android/settings/core/InstrumentedFragment.java
src/com/android/settings/dashboard/DashboardFeatureProvider.java
src/com/android/settings/dashboard/DashboardFeatureProviderImpl.java
src/com/android/settings/dashboard/DashboardTilePreference.java [new file with mode: 0644]
src/com/android/settings/system/SystemDashboardFragment.java [new file with mode: 0644]
tests/robotests/src/com/android/settings/dashboard/conditional/DashboardTilePreferenceTest.java [new file with mode: 0644]