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