-Fixed NPE when popup is updated during shutdown.
This commit is contained in:
parent
b1ee22cde6
commit
b883f313ba
|
@ -362,6 +362,7 @@ public final class PopupVideoPlayer extends Service {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updatePopupSize(int width, int height) {
|
private void updatePopupSize(int width, int height) {
|
||||||
|
if (playerImpl == null) return;
|
||||||
if (DEBUG) Log.d(TAG, "updatePopupSize() called with: width = [" + width + "], height = [" + height + "]");
|
if (DEBUG) Log.d(TAG, "updatePopupSize() called with: width = [" + width + "], height = [" + height + "]");
|
||||||
|
|
||||||
width = (int) (width > maximumWidth ? maximumWidth : width < minimumWidth ? minimumWidth : width);
|
width = (int) (width > maximumWidth ? maximumWidth : width < minimumWidth ? minimumWidth : width);
|
||||||
|
|
Loading…
Reference in New Issue