summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorShigeki Yokomichi <shigeki.x.yokomichi@sonymobile.com>2016-02-25 17:17:39 +0900
committerShunta Sato <shunta.sato@sonymobile.com>2016-07-21 11:47:40 +0900
commit8eb355dff90c8d7ef392e7bf3f139b2b78116873 (patch)
tree94c86eed99a0591c3d26a5c0ff4b377ab07b6b7c /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent98cf9d1a606e17b5eeedad5fff9bb5935ebb370b (diff)
Fix the "Alarm volume" icon is displayed incorrectly
Symptom: 1. Set Alarm volume to 0 on Sound & notification screen, then tap Back key and reopen the screen. 2. Set Alarm volume up to 1 or larger, then alarm icon changes to unmute. 3. Set Alarm volume down to 0, then the icon doesn't change to mute. There expected the icon should change to mute one. Detail and sample: SeekBarVolumizer manages a variable mLastAudibleStreamVolume. This variable decides whether it executes mute procedure or not. When this variable is 0, it will not execute mute procedure. Because the condition to execute mute proceduce is below. - lastAudibleVolume * (mute ? -1 : 1) < 0 What original code will not update this variable from constructor is one of problems. So once the icon changes to unmute one, the icon will never change to mute one. Solution: Changed the condition as it doesn't depend on value of lastAudibleVolume. Bug: 30265487 Change-Id: I42165f39d1f344169674c09a045b6fb2bb25db4d
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions