Skip to content

Commit

Permalink
解决悬浮球有时候闪退的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
1754048656 committed Dec 14, 2023
1 parent 317feeb commit 72c3353
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -383,13 +383,15 @@ private void hideSmallCircles() {

// 延迟一段时间后移除小圆的视图
new Handler().postDelayed(() -> {
wm.removeView(smallLL1);
wm.removeView(smallLL2);
wm.removeView(smallLL3);
wm.removeView(smallLL4);
if (smallLL1.getWindowToken() != null)
wm.removeView(smallLL1);
if (smallLL2.getWindowToken() != null)
wm.removeView(smallLL2);
if (smallLL3.getWindowToken() != null)
wm.removeView(smallLL3);
if (smallLL4.getWindowToken() != null)
wm.removeView(smallLL4);
}, 50);


isSmallCirclesVisible = false;
}
}
Expand Down

0 comments on commit 72c3353

Please sign in to comment.