upgrade SDK level to 33
This commit is contained in:
parent
7c0fdf0957
commit
fcb0941e7b
@ -29,6 +29,9 @@ function show(n) {
|
|||||||
<b>Changelog</b> [<a href='javascript:show("changelog")'>show</a>]
|
<b>Changelog</b> [<a href='javascript:show("changelog")'>show</a>]
|
||||||
<pre id='changelog'>
|
<pre id='changelog'>
|
||||||
|
|
||||||
|
<b>NEXT</b>
|
||||||
|
- <b>NEW</b> Upgraded Android SDK level to 33
|
||||||
|
|
||||||
<b>1.1.0</b>
|
<b>1.1.0</b>
|
||||||
- <b>FIX</b> Unbreak plugin integration
|
- <b>FIX</b> Unbreak plugin integration
|
||||||
- <b>FIX</b> Always show cover art in notification
|
- <b>FIX</b> Always show cover art in notification
|
||||||
|
@ -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
|
* 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
|
* 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.util.regex.Pattern;
|
||||||
|
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
public class MediaMetadataExtractor extends HashMap<String, ArrayList<String>> {
|
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_AUDIO) == null ||
|
||||||
mediaTags.extractMetadata(MediaMetadataRetriever.METADATA_KEY_HAS_VIDEO) != null ||
|
mediaTags.extractMetadata(MediaMetadataRetriever.METADATA_KEY_HAS_VIDEO) != null ||
|
||||||
mediaTags.extractMetadata(MediaMetadataRetriever.METADATA_KEY_DURATION) == null) {
|
mediaTags.extractMetadata(MediaMetadataRetriever.METADATA_KEY_DURATION) == null) {
|
||||||
mediaTags.release();
|
try {
|
||||||
|
mediaTags.release();
|
||||||
|
} catch (IOException e) {
|
||||||
|
Log.v("VanillaMusic", "mediaTags.release() failed: " + e);
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
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)
|
// if bastp was able to parse it (which is stricter than Android's own parser)
|
||||||
mIsMediaFile = (containsKey(TITLE) || containsKey(ALBUM) || containsKey(ARTIST) || !bastpType.equals(""));
|
mIsMediaFile = (containsKey(TITLE) || containsKey(ALBUM) || containsKey(ARTIST) || !bastpType.equals(""));
|
||||||
|
|
||||||
mediaTags.release();
|
try {
|
||||||
|
mediaTags.release();
|
||||||
|
} catch (IOException e) {
|
||||||
|
Log.v("VanillaMusic", "mediaTags.release() failed: " + e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,7 +14,7 @@ allprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
ext {
|
ext {
|
||||||
compileSdkVersion = 30
|
compileSdkVersion = 33
|
||||||
targetSdkVersion = 30
|
targetSdkVersion = 33
|
||||||
minSdkVersion = 15
|
minSdkVersion = 15
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user