Respect the global animator duration scale setting

This changes the way the TOTP progress bar works, so that we can respect the
global animator duration scale setting.
This commit is contained in:
Alexander Bakker 2020-06-07 17:00:56 +02:00
parent 626995ec91
commit 98a38b03e4
10 changed files with 102 additions and 103 deletions

View file

@ -152,12 +152,12 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.beemdevelopment.aegis.ui.views.PeriodProgressBar
<com.beemdevelopment.aegis.ui.views.TotpProgressBar
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="wrap_content"
android:layout_height="4dp"
android:id="@+id/progressBar"
android:max="1000"
android:max="5000"
android:layout_weight="1"/>
</LinearLayout>

View file

@ -151,7 +151,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.beemdevelopment.aegis.ui.views.PeriodProgressBar
<com.beemdevelopment.aegis.ui.views.TotpProgressBar
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="wrap_content"
android:layout_height="3dp"

View file

@ -150,7 +150,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.beemdevelopment.aegis.ui.views.PeriodProgressBar
<com.beemdevelopment.aegis.ui.views.TotpProgressBar
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="wrap_content"
android:layout_height="3dp"

View file

@ -6,14 +6,14 @@
android:background="?attr/background"
android:orientation="vertical">
<com.beemdevelopment.aegis.ui.views.PeriodProgressBar
<com.beemdevelopment.aegis.ui.views.TotpProgressBar
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="4dp"
android:progressDrawable="@drawable/progress_horizontal"
android:id="@+id/progressBar"
android:visibility="gone"
android:max="1000"/>
android:max="5000"/>
<androidx.recyclerview.widget.RecyclerView
android:layout_width="match_parent"