Commit 4d114ec6 authored by Sylvain Berfini's avatar Sylvain Berfini 🐮
Browse files

Fixed androix.media package detection

parent 692cbf24
......@@ -273,12 +273,10 @@ public class CoreManager {
private boolean isAndroidXMediaAvailable() {
boolean available = false;
try {
Class androixMedia = Class.forName("androidx.media.AudioAttributesCompat.Builder");
Class[] types = {};
Constructor constructor = androixMedia.getConstructor(types);
Class androixMedia = Class.forName("androidx.media.AudioAttributesCompat");
available = true;
} catch (ClassNotFoundException e) {
Log.w("[Core Manager] Couldn't find class androidx.media.AudioAttributesCompat.Builder");
Log.w("[Core Manager] Couldn't find class androidx.media.AudioAttributesCompat");
} catch (Exception e) {
Log.w("[Core Manager] Exception: " + e);
}
......
Markdown is supported
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