mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-01-05 13:30:30 -06:00
crash fixes
This commit is contained in:
@@ -686,7 +686,12 @@ public final class MediaSessionConnector {
|
||||
mediaMetadataProvider != null && player != null
|
||||
? mediaMetadataProvider.getMetadata(player)
|
||||
: METADATA_EMPTY;
|
||||
mediaSession.setMetadata(metadata != null ? metadata : METADATA_EMPTY);
|
||||
// MOD: fix NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
|
||||
try {
|
||||
mediaSession.setMetadata(metadata != null ? metadata : METADATA_EMPTY);
|
||||
} catch (NullPointerException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -180,6 +180,17 @@
|
||||
-keepclassmembers interface com.google.android.exoplayer2.Player$EventListener {
|
||||
void onPlaybackParametersChanged(com.google.android.exoplayer2.PlaybackParameters);
|
||||
}
|
||||
-keepclassmembers interface com.google.android.exoplayer2.Player {
|
||||
boolean isPlaying();
|
||||
}
|
||||
-keepclassmembers class com.liskovsoft.sharedutils.locale.LocaleContextWrapper {
|
||||
public static android.content.Context wrap(android.content.Context, java.util.Locale, android.util.DisplayMetrics);
|
||||
}
|
||||
-keepclassmembers class kotlin.collections.ArraysKt___ArraysKt {
|
||||
public static java.lang.Object firstOrNull(java.lang.Object[]);
|
||||
}
|
||||
|
||||
# NOTE: Debug build: VirusTotal (Google: Detected, Ikarus: Trojan.AndroidOS.Agent)
|
||||
#-keep class androidx.recyclerview.widget.RecyclerView { *; }
|
||||
#-keep class com.google.android.exoplayer2.C { *; }
|
||||
#-keep class kotlin.collections.CollectionsKt__CollectionsKt { *; }
|
||||
|
||||
Reference in New Issue
Block a user