Only show first 5 items in sound setting until click More.

Bug: 32255863
Test: RunSettingsRoboTests
Change-Id: Ib9449b70e2f2a003b3c6a810d0cc03016d025edb
This commit is contained in:
Fan Zhang
2017-01-06 17:44:30 -08:00
parent d916dae218
commit b1ddde17d2

View File

@@ -62,6 +62,12 @@ public class SoundSettings extends DashboardFragment {
private WorkSoundPreferenceController mWorkSoundController;
private RingtonePreference mRequestPreference;
@Override
public void onAttach(Context context) {
super.onAttach(context);
mProgressiveDisclosureMixin.setTileLimit(5);
}
@Override
public int getMetricsCategory() {
return MetricsEvent.SOUND;