mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Use the existing TAG
constant in AudioManagerCompat
This also addresses the `Private field 'TAG' is never used` warning.
This commit is contained in:
parent
d4ea3ad932
commit
14b4a9ff32
@ -220,10 +220,7 @@ public final class AudioManagerCompat {
|
|||||||
try {
|
try {
|
||||||
return audioManager.getStreamVolume(streamType);
|
return audioManager.getStreamVolume(streamType);
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
Log.w(
|
Log.w(TAG, "Could not retrieve stream volume for stream type " + streamType, e);
|
||||||
"AudioManagerCompat",
|
|
||||||
"Could not retrieve stream volume for stream type " + streamType,
|
|
||||||
e);
|
|
||||||
return audioManager.getStreamMaxVolume(streamType);
|
return audioManager.getStreamMaxVolume(streamType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user