Fix crash when there is no emergencybroadcast app on device
Some devices do not have emergencybroadcast app installed, so we should not show the preference item for it. Add the preference controller into AppAndNotificationFragment properly hides it. Change-Id: Ic39ba24da9bd8f3200a5e44232a5489e35c48c0a Fix: 37945069 Test: make RunSettingsRoboTests
This commit is contained in:
@@ -186,7 +186,8 @@ public class SoundSettings extends DashboardFragment {
|
||||
Lifecycle lifecycle) {
|
||||
final List<PreferenceController> controllers = new ArrayList<>();
|
||||
controllers.add(new ZenModePreferenceController(context));
|
||||
controllers.add(new EmergencyBroadcastPreferenceController(context));
|
||||
controllers.add(new EmergencyBroadcastPreferenceController(
|
||||
context, "cell_broadcast_settings"));
|
||||
controllers.add(new VibrateWhenRingPreferenceController(context));
|
||||
|
||||
// === Volumes ===
|
||||
|
Reference in New Issue
Block a user