Use the existing TAG constant in AudioManagerCompat

This also addresses the `Private field 'TAG' is never used` warning.
This commit is contained in:
Gaëtan Muller 2025-03-24 10:48:53 +01:00 committed by microkatz
parent d4ea3ad932
commit 14b4a9ff32

View File

@ -220,10 +220,7 @@ public final class AudioManagerCompat {
try {
return audioManager.getStreamVolume(streamType);
} catch (RuntimeException e) {
Log.w(
"AudioManagerCompat",
"Could not retrieve stream volume for stream type " + streamType,
e);
Log.w(TAG, "Could not retrieve stream volume for stream type " + streamType, e);
return audioManager.getStreamMaxVolume(streamType);
}
}