Draw preference divider based on preference group.

Bug: 32179750
Test: RunSettingsRoboTests
Change-Id: I3ea1cd662c5baec825fae615883b94b26e648409
This commit is contained in:
Fan Zhang
2016-10-17 10:16:04 -07:00
parent 542fe0c0c3
commit be2ac27b67
8 changed files with 236 additions and 14 deletions

View File

@@ -15,6 +15,8 @@
*/
package com.android.settings.dashboard;
import android.support.v7.preference.Preference;
import com.android.settingslib.drawer.DashboardCategory;
import com.android.settingslib.drawer.Tile;
@@ -45,7 +47,7 @@ public interface DashboardFeatureProvider {
* priority 100 - 199 belongs to priority level 100, tiles with priority 200 - 299 is in
* group 200, and so on.
*/
int getPriorityGroup(Tile tile);
int getPriorityGroup(Preference preference);
/**
* Returns an unique string key for the tile.