diff options
author | John Spurlock <jspurlock@google.com> | 2015-06-22 20:28:38 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-06-22 20:28:40 +0000 |
commit | 82e595fd6e3a9438b090106c226bb2f8bb2a6254 (patch) | |
tree | 9e2523d53def05945cf36f1568df361a5faa3a87 /packages | |
parent | 2bd8e97f996bba0b52ed213f4feb4f367fe019c2 (diff) | |
parent | 67a0f850a4d3358f3e1168bc84012edf96139ac2 (diff) | |
download | frameworks_base-82e595fd6e3a9438b090106c226bb2f8bb2a6254.zip frameworks_base-82e595fd6e3a9438b090106c226bb2f8bb2a6254.tar.gz frameworks_base-82e595fd6e3a9438b090106c226bb2f8bb2a6254.tar.bz2 |
Merge "Volume: Force focused state to disambig multiple sliders." into mnc-dev
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java index 5b2eb84..065523f 100644 --- a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java +++ b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java @@ -155,6 +155,7 @@ public class VolumeDialog { lp.y = res.getDimensionPixelSize(R.dimen.volume_offset_top); lp.gravity = Gravity.TOP; window.setAttributes(lp); + window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_NOTHING); mActiveSliderTint = loadColorStateList(R.color.system_accent_color); mInactiveSliderTint = loadColorStateList(R.color.volume_slider_inactive); @@ -670,6 +671,14 @@ public class VolumeDialog { } private void updateVolumeRowSliderTintH(VolumeRow row, boolean isActive) { + if (isActive && mExpanded) { + row.slider.setFocusable(true); + row.slider.setFocusableInTouchMode(true); + row.slider.requestFocus(); + } else { + row.slider.setFocusableInTouchMode(false); + row.slider.setFocusable(false); + } final ColorStateList tint = isActive && row.slider.isEnabled() ? mActiveSliderTint : mInactiveSliderTint; if (tint == row.cachedSliderTint) return; |