mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-14 14:02:49 +00:00
Made the progressbars go from 100 to 0 again
I accidentally reverted 470244b26cbde721ccae61aa7b891747e58c197d
This commit is contained in:
parent
2128b5bf59
commit
9814b09f03
1 changed files with 2 additions and 2 deletions
|
@ -89,8 +89,8 @@ public class KeyProfileAdapter extends RecyclerView.Adapter<KeyProfileAdapter.Ke
|
|||
|
||||
long millisTillRotation = keyProfile.Info.getMillisTillNextRotation();
|
||||
long period = keyProfile.Info.getPeriod() * 1000;
|
||||
int currentProgress = (int)((((double)period - millisTillRotation) / period) * 1000);
|
||||
ObjectAnimator animation = ObjectAnimator.ofInt(progressBar, "progress", currentProgress, 1000);
|
||||
int currentProgress = 1000 - (int)((((double)period - millisTillRotation) / period) * 1000);
|
||||
ObjectAnimator animation = ObjectAnimator.ofInt(progressBar, "progress", currentProgress, 0);
|
||||
animation.setDuration(millisTillRotation);
|
||||
animation.setInterpolator(new LinearInterpolator());
|
||||
animation.start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue