Correct logic for showing overide dnd field.

Change-Id: Iae1d053d3816ccdae9f6d9bc6a16622b50e07440
Fixes: 29995563
diff --git a/src/com/android/settings/notification/AppNotificationSettings.java b/src/com/android/settings/notification/AppNotificationSettings.java
index f718b3c..e7f15e5 100644
--- a/src/com/android/settings/notification/AppNotificationSettings.java
+++ b/src/com/android/settings/notification/AppNotificationSettings.java
@@ -33,10 +33,8 @@
 import com.android.internal.widget.LockPatternUtils;
 import com.android.settings.AppHeader;
 import com.android.settings.R;
-import com.android.settings.applications.LayoutPreference;
 import com.android.settings.notification.NotificationBackend.AppRow;
 import com.android.settingslib.RestrictedSwitchPreference;
-import com.android.settingslib.RestrictedPreference;
 
 
 import java.util.List;
@@ -113,7 +111,8 @@
             mSilent.setChecked(importance == Ranking.IMPORTANCE_LOW);
         }
         setVisible(mPriority, checkCanBeVisible(Ranking.IMPORTANCE_DEFAULT, importance)
-                && !mDndVisualEffectsSuppressed);
+                || (checkCanBeVisible(Ranking.IMPORTANCE_LOW, importance)
+                        && mDndVisualEffectsSuppressed));
         setVisible(mVisibilityOverride,
                 checkCanBeVisible(Ranking.IMPORTANCE_MIN, importance) && lockscreenSecure);
     }