Skip to content

Commit

Permalink
Fix handling non specific mime type
Browse files Browse the repository at this point in the history
  • Loading branch information
moneytoo committed May 10, 2021
1 parent 4d08114 commit d6c7477
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/com/brouken/player/Prefs.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ public void updateMedia(final Uri uri, final String type) {
updateSubtitle(null);
updateMeta(-1, -1, -1, AspectRatioFrameLayout.RESIZE_MODE_FIT, 1.f);

if (mediaType != null && mediaType.endsWith("/*")) {
mediaType = null;
}

final SharedPreferences.Editor sharedPreferencesEditor = mSharedPreferences.edit();
if (uri == null)
sharedPreferencesEditor.remove(PREF_KEY_MEDIA_URI);
Expand Down

0 comments on commit d6c7477

Please sign in to comment.