OSDN Git Service

Always show rule creation option.
authorJulia Reynolds <juliacr@google.com>
Tue, 27 Oct 2015 15:10:50 +0000 (11:10 -0400)
committerJulia Reynolds <juliacr@google.com>
Tue, 27 Oct 2015 15:29:24 +0000 (15:29 +0000)
Change-Id: I3508c15a0e9b727d7bc3dd63bd6482a623aaef5b

src/com/android/settings/notification/ZenModeAutomationSettings.java

index 3a30369..19be44b 100644 (file)
@@ -159,7 +159,6 @@ public class ZenModeAutomationSettings extends ZenModeSettingsBase {
     private void updateControls() {
         final PreferenceScreen root = getPreferenceScreen();
         root.removeAll();
-        if (mRules.size() == 0) return;
         final AutomaticZenRule[] sortedRules = sortedRules();
         for (AutomaticZenRule sortedRule : sortedRules) {
             root.addPreference(new ZenRulePreference(getPrefContext(), sortedRule));