Check if target is attached to window before trying to mask it.

fork-5.53.8
Alex Hart 2020-02-04 09:47:26 -04:00 zatwierdzone przez GitHub
rodzic 36a4225858
commit 092fb40333
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -67,7 +67,7 @@ public class MaskView extends View {
protected void onDraw(@NonNull Canvas canvas) {
super.onDraw(canvas);
if (target == null) {
if (target == null || !target.isAttachedToWindow()) {
return;
}