diff options
| author | 2017-09-15 07:35:17 +0000 | |
|---|---|---|
| committer | 2017-09-15 07:35:17 +0000 | |
| commit | 693a30f3d70636d2e717e8250fe80f696b4827f9 (patch) | |
| tree | 2baac285029be92be3c4237ca465648013df9b04 | |
| parent | f973a9a574c162f875443aaa240937932e89b0d2 (diff) | |
| parent | a50fe10aacd5ade9ca43d6e08641f8ed81e39506 (diff) | |
Merge "Merge "Display volume dialog for longer..." into oc-mr1-dev am: d5ca90a7af am: 379961a33f"
3 files changed, 5 insertions, 3 deletions
diff --git a/packages/SystemUI/res/layout/volume_zen_footer.xml b/packages/SystemUI/res/layout/volume_zen_footer.xml index 7ffcb1efb7b3..df79c5ff5ba4 100644 --- a/packages/SystemUI/res/layout/volume_zen_footer.xml +++ b/packages/SystemUI/res/layout/volume_zen_footer.xml @@ -25,18 +25,15 @@ android:id="@+id/zen_embedded_divider" android:layout_width="match_parent" android:layout_height="1dp" - android:layout_marginBottom="12dp" android:layout_marginTop="8dp" android:background="@color/qs_tile_divider" /> - <RelativeLayout android:id="@+id/zen_introduction" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginEnd="16dp" - android:paddingTop="8dp" android:paddingBottom="8dp" android:background="@drawable/zen_introduction_message_background" android:theme="@*android:style/ThemeOverlay.DeviceDefault.Accent.Light"> diff --git a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java index 0fd6c7440c94..761e979d3244 100644 --- a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java +++ b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java @@ -75,6 +75,7 @@ import android.widget.TextView; import com.android.settingslib.Utils; import com.android.systemui.Dependency; import com.android.systemui.Interpolators; +import com.android.systemui.Prefs; import com.android.systemui.R; import com.android.systemui.plugins.VolumeDialog; import com.android.systemui.plugins.VolumeDialogController; @@ -515,6 +516,9 @@ public class VolumeDialogImpl implements VolumeDialog, TunerService.Tunable { if (mSafetyWarning != null) return 5000; if (mExpanded || mExpandButtonAnimationRunning) return 5000; if (mActiveStream == AudioManager.STREAM_MUSIC) return 1500; + if (mZenFooter.shouldShowIntroduction()) { + return 6000; + } return 3000; } diff --git a/packages/SystemUI/src/com/android/systemui/volume/ZenFooter.java b/packages/SystemUI/src/com/android/systemui/volume/ZenFooter.java index 74642129b197..80e162983a65 100644 --- a/packages/SystemUI/src/com/android/systemui/volume/ZenFooter.java +++ b/packages/SystemUI/src/com/android/systemui/volume/ZenFooter.java @@ -152,6 +152,7 @@ public class ZenFooter extends LinearLayout { mController.getCurrentUser(), true /*shortVersion*/); Util.setText(mSummaryLine2, line2); } + public boolean shouldShowIntroduction() { final boolean confirmed = Prefs.getBoolean(mContext, Prefs.Key.DND_CONFIRMED_ALARM_INTRODUCTION, false); |