- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
31 lines
1.1 KiB
Java
31 lines
1.1 KiB
Java
package com.fyber.inneractive.sdk.player.mediaplayer;
|
|
|
|
import android.media.AudioManager;
|
|
import com.fyber.inneractive.sdk.util.IAlog;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class d implements Runnable {
|
|
public final /* synthetic */ a a;
|
|
|
|
public d(a aVar) {
|
|
this.a = aVar;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
a aVar = this.a;
|
|
String c = aVar.c();
|
|
long currentTimeMillis = System.currentTimeMillis();
|
|
AudioManager audioManager = (AudioManager) aVar.a.getSystemService("audio");
|
|
int streamVolume = audioManager.getStreamVolume(3);
|
|
int streamMaxVolume = audioManager.getStreamMaxVolume(3);
|
|
float f = streamVolume / streamMaxVolume;
|
|
IAlog.a("%s unmute maxVolume = %d currentVolume = %d targetVolume = %s", aVar.c(), Integer.valueOf(streamMaxVolume), Integer.valueOf(streamVolume), Float.valueOf(f));
|
|
if (f == 0.0f) {
|
|
f = 0.1f;
|
|
}
|
|
aVar.setVolume(f, f);
|
|
IAlog.e(c + "timelog: unmute took " + (System.currentTimeMillis() - currentTimeMillis) + " msec", new Object[0]);
|
|
}
|
|
}
|