diff --git a/src/com/thbs/progressbutton/CusImage.java b/src/com/thbs/progressbutton/CusImage.java index 07a6476..56099c5 100644 --- a/src/com/thbs/progressbutton/CusImage.java +++ b/src/com/thbs/progressbutton/CusImage.java @@ -80,7 +80,7 @@ public void reset() { sweepAngle = 0; startAngle = -90; - flag = 1; + flag = 0; } @Override diff --git a/src/com/thbs/progressbutton/MainActivity.java b/src/com/thbs/progressbutton/MainActivity.java index f9c3d40..1001397 100644 --- a/src/com/thbs/progressbutton/MainActivity.java +++ b/src/com/thbs/progressbutton/MainActivity.java @@ -70,7 +70,7 @@ public void run() { if (masterLayout.flg_frmwrk_mode == 3) { //End state. Call any method that you want to execute. - + masterLayout.reset(); runOnUiThread(new Runnable() { @Override diff --git a/src/com/thbs/progressbutton/MasterLayout.java b/src/com/thbs/progressbutton/MasterLayout.java index a003a6c..3b1a213 100644 --- a/src/com/thbs/progressbutton/MasterLayout.java +++ b/src/com/thbs/progressbutton/MasterLayout.java @@ -420,6 +420,8 @@ public void reset() { cusview.reset(); cusview.setVisibility(View.GONE); + fillcircle.setVisibility(View.GONE); + buttonimage.setVisibility(View.VISIBLE); buttonimage.setImageBitmap(first_icon_bmp); flg_frmwrk_mode = 1;