-Fixed NPE when popup is updated during shutdown.

pull/810/head
John Zhen Mo 2017-11-04 10:12:38 -07:00
rodzic b1ee22cde6
commit b883f313ba
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -362,6 +362,7 @@ public final class PopupVideoPlayer extends Service {
}
private void updatePopupSize(int width, int height) {
if (playerImpl == null) return;
if (DEBUG) Log.d(TAG, "updatePopupSize() called with: width = [" + width + "], height = [" + height + "]");
width = (int) (width > maximumWidth ? maximumWidth : width < minimumWidth ? minimumWidth : width);