kopia lustrzana https://github.com/ryukoposting/Signal-Android
Check if target is attached to window before trying to mask it.
rodzic
36a4225858
commit
092fb40333
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue