upgrade SDK level to 33

This commit is contained in:
Adrian Ulrich 2022-09-05 20:31:08 +02:00
parent 7c0fdf0957
commit fcb0941e7b
3 changed files with 18 additions and 5 deletions

View File

@ -29,6 +29,9 @@ function show(n) {
<b>Changelog</b> [<a href='javascript:show("changelog")'>show</a>]
<pre id='changelog'>
<b>NEXT</b>
- <b>NEW</b> Upgraded Android SDK level to 33
<b>1.1.0</b>
- <b>FIX</b> Unbreak plugin integration
- <b>FIX</b> Always show cover art in notification

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2016 - 2017 Adrian Ulrich <adrian@blinkenlights.ch>
* Copyright (C) 2016 - 2022 Adrian Ulrich <adrian@blinkenlights.ch>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -26,6 +26,7 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.io.FileInputStream;
import java.io.IOException;
import android.util.Log;
public class MediaMetadataExtractor extends HashMap<String, ArrayList<String>> {
@ -316,7 +317,12 @@ public class MediaMetadataExtractor extends HashMap<String, ArrayList<String>> {
mediaTags.extractMetadata(MediaMetadataRetriever.METADATA_KEY_HAS_AUDIO) == null ||
mediaTags.extractMetadata(MediaMetadataRetriever.METADATA_KEY_HAS_VIDEO) != null ||
mediaTags.extractMetadata(MediaMetadataRetriever.METADATA_KEY_DURATION) == null) {
try {
mediaTags.release();
} catch (IOException e) {
Log.v("VanillaMusic", "mediaTags.release() failed: " + e);
}
return;
}
@ -361,7 +367,11 @@ public class MediaMetadataExtractor extends HashMap<String, ArrayList<String>> {
// if bastp was able to parse it (which is stricter than Android's own parser)
mIsMediaFile = (containsKey(TITLE) || containsKey(ALBUM) || containsKey(ARTIST) || !bastpType.equals(""));
try {
mediaTags.release();
} catch (IOException e) {
Log.v("VanillaMusic", "mediaTags.release() failed: " + e);
}
}
/**

View File

@ -14,7 +14,7 @@ allprojects {
}
}
ext {
compileSdkVersion = 30
targetSdkVersion = 30
compileSdkVersion = 33
targetSdkVersion = 33
minSdkVersion = 15
}