From fd571a5cd062b1763752a025a605130eb98e8558 Mon Sep 17 00:00:00 2001 From: BaselHorany <30597730+BaselHorany@users.noreply.github.com> Date: Sat, 20 Jan 2018 16:54:35 +0300 Subject: [PATCH] Update ProgressStatusBar.java --- .../java/com/basel/ProgressStatusBar/ProgressStatusBar.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ProgressStatusBar/src/main/java/com/basel/ProgressStatusBar/ProgressStatusBar.java b/ProgressStatusBar/src/main/java/com/basel/ProgressStatusBar/ProgressStatusBar.java index 8c29eb4..9920b0a 100644 --- a/ProgressStatusBar/src/main/java/com/basel/ProgressStatusBar/ProgressStatusBar.java +++ b/ProgressStatusBar/src/main/java/com/basel/ProgressStatusBar/ProgressStatusBar.java @@ -301,6 +301,9 @@ public void remove() { mTextView.setText(""); pListener.onEnd(); } + if(ballsHandler!=null&&ballsRunnable!=null){ + ballsHandler.removeCallbacks(ballsRunnable); + } } public interface OnProgressListener {