OSDN Git Service

AudioService: removed last audible volume index
authorEric Laurent <elaurent@google.com>
Fri, 29 Mar 2013 18:36:03 +0000 (11:36 -0700)
committerEric Laurent <elaurent@google.com>
Mon, 1 Apr 2013 23:16:57 +0000 (16:16 -0700)
commit42b041ed4f184e3af7f788eb07307f556a2a6616
tree257e9a13a1a20e288d936d7d65a8f6e02e3241e5
parentdac3fd9d90daffb4f6b08c788184ff38523348ba
AudioService: removed last audible volume index

Removed storage of last audible stream volume index.
This information is redundant because we already have
two pieces of information (current volume and mute state)
allowing to completely define which volume should actually
be applied by the framework or indicated to apps.

The last audible index management had anyway been broken by
successive changes making that the value stored could be 0
in some cases causing problems like issue 8109149 when
restoring the volume settings from the DB.

Bug 8109149

Change-Id: Iea80f5a994554e42d45b227f651ec9646844aa77
media/java/android/media/AudioService.java