OSDN Git Service

Add Advanced button to Apps & notifications page.
authorDoris Ling <dling@google.com>
Mon, 13 Mar 2017 21:36:12 +0000 (14:36 -0700)
committerDoris Ling <dling@google.com>
Tue, 14 Mar 2017 20:23:29 +0000 (13:23 -0700)
- set the progressive mixin to show 3 items initially.

Change-Id: I874982e9b230d5b6afe4f2ced8e8c8c4dd84ba79
Fix: 36177949
Test: visual

src/com/android/settings/applications/AppAndNotificationDashboardFragment.java

index bdf6cc4..9018d9b 100644 (file)
@@ -43,6 +43,12 @@ public class AppAndNotificationDashboardFragment extends DashboardFragment {
     }
 
     @Override
+    public void onAttach(Context context) {
+        super.onAttach(context);
+        mProgressiveDisclosureMixin.setTileLimit(3);
+    }
+
+    @Override
     protected int getPreferenceScreenResId() {
         return R.xml.app_and_notification;
     }