mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-22 18:07:55 +00:00
Fix NPE if displayArt changes while getArtAsArray is running
This commit is contained in:
parent
d5c47a1c4c
commit
17010e533f
@ -200,6 +200,7 @@ class MprisReceiverCallback extends MediaController.Callback {
|
|||||||
* @return null if no art is available, otherwise a PNG image serialized into a bytearray
|
* @return null if no art is available, otherwise a PNG image serialized into a bytearray
|
||||||
*/
|
*/
|
||||||
public byte[] getArtAsArray() {
|
public byte[] getArtAsArray() {
|
||||||
|
Bitmap displayArt = this.displayArt;
|
||||||
if (displayArt == null) {
|
if (displayArt == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user