Merge pull request #2133 from kapodamy/popup-player-fixup

Fix random Popup player crash
This commit is contained in:
Christian Schabesberger 2019-02-19 14:28:04 +01:00 committed by GitHub
commit 9d8b070f1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -626,6 +626,7 @@ public final class PopupVideoPlayer extends Service {
@Override
public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {
super.onLoadingComplete(imageUri, view, loadedImage);
if (playerImpl == null) return;
// rebuild notification here since remote view does not release bitmaps,
// causing memory leaks
resetNotification();