mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 21:38:33 +00:00
Check if target is attached to window before trying to mask it.
This commit is contained in:
parent
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user