Merge "Remove duplicates from sound settings" into oc-dev am: 3abeba07d3
am: a939959838
Change-Id: I0260cf2a7dd9d54b700387d0d82f58a7c6a3263c
This commit is contained in:
@@ -43,6 +43,7 @@ import java.util.List;
|
||||
public class SoundSettings extends DashboardFragment {
|
||||
private static final String TAG = "SoundSettings";
|
||||
|
||||
private static final String KEY_CELL_BROADCAST_SETTINGS = "cell_broadcast_settings";
|
||||
private static final String SELECTED_PREFERENCE_KEY = "selected_preference";
|
||||
private static final int REQUEST_CODE = 200;
|
||||
|
||||
@@ -187,7 +188,7 @@ public class SoundSettings extends DashboardFragment {
|
||||
final List<PreferenceController> controllers = new ArrayList<>();
|
||||
controllers.add(new ZenModePreferenceController(context));
|
||||
controllers.add(new EmergencyBroadcastPreferenceController(
|
||||
context, "cell_broadcast_settings"));
|
||||
context, KEY_CELL_BROADCAST_SETTINGS));
|
||||
controllers.add(new VibrateWhenRingPreferenceController(context));
|
||||
|
||||
// === Volumes ===
|
||||
@@ -236,6 +237,16 @@ public class SoundSettings extends DashboardFragment {
|
||||
return buildPreferenceControllers(context, null /* fragment */,
|
||||
null /* callback */, null /* lifecycle */);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getNonIndexableKeys(Context context) {
|
||||
List<String> keys = super.getNonIndexableKeys(context);
|
||||
// Duplicate results
|
||||
keys.add((new ZenModePreferenceController(context)).getPreferenceKey());
|
||||
keys.add(ZenModeSettings.KEY_VISUAL_SETTINGS);
|
||||
keys.add(KEY_CELL_BROADCAST_SETTINGS);
|
||||
return keys;
|
||||
}
|
||||
};
|
||||
|
||||
// === Work Sound Settings ===
|
||||
|
Reference in New Issue
Block a user