Skip to content
Commit 739d6c23 authored by Hyundo Moon's avatar Hyundo Moon
Browse files

Prevent system crash when adjusting volume with illegal direction

The system process crashes when any of below methods is called with
illegal direction argument:
 - MediaController.adjustVolume()
 - AudioManager.adjustVolume()
 - AudioManager.adjustSuggestedStreamVolume()

This CL fixes the crash.

Bug: 65755677
Test: Added test methods to CTS. Passed the tests.
Change-Id: I2fbf0459465c75e515110e1300630bda15e4a19e
(cherry picked from commit 15361326)
parent 204346c2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment