Merge pull request #5893 from ByteHamster/statistics-loading-spinner

Show spinner while loading statistics
This commit is contained in:
ByteHamster 2022-05-15 16:10:27 +02:00 committed by GitHub
commit ee3b59de90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 5 deletions

View File

@ -708,6 +708,7 @@
<string name="statistics_space_used">Space used:</string> <string name="statistics_space_used">Space used:</string>
<string name="statistics_episodes_started_total">Episodes started/total:</string> <string name="statistics_episodes_started_total">Episodes started/total:</string>
<string name="statistics_view_all">View for all podcasts »</string> <string name="statistics_view_all">View for all podcasts »</string>
<string name="wait_icon" translatable="false">{fa-spinner}</string>
<!-- AntennaPodSP --> <!-- AntennaPodSP -->
<string name="sp_apps_importing_feeds_msg">Importing subscriptions from single-purpose apps&#8230;</string> <string name="sp_apps_importing_feeds_msg">Importing subscriptions from single-purpose apps&#8230;</string>

View File

@ -30,4 +30,6 @@ dependencies {
annotationProcessor "com.github.bumptech.glide:compiler:$glideVersion" annotationProcessor "com.github.bumptech.glide:compiler:$glideVersion"
implementation "io.reactivex.rxjava2:rxandroid:$rxAndroidVersion" implementation "io.reactivex.rxjava2:rxandroid:$rxAndroidVersion"
implementation "io.reactivex.rxjava2:rxjava:$rxJavaVersion" implementation "io.reactivex.rxjava2:rxjava:$rxJavaVersion"
implementation "com.joanzapata.iconify:android-iconify-fontawesome:$iconifyVersion"
implementation "com.joanzapata.iconify:android-iconify-material:$iconifyVersion"
} }

View File

@ -13,12 +13,13 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/statistics_episodes_started_total" /> android:text="@string/statistics_episodes_started_total" />
<TextView <com.joanzapata.iconify.widget.IconTextView
android:id="@+id/startedTotalLabel" android:id="@+id/startedTotalLabel"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="8dp" android:layout_marginLeft="8dp"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:text="@string/wait_icon"
tools:text="0 / 0" /> tools:text="0 / 0" />
</TableRow> </TableRow>
@ -30,12 +31,13 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/statistics_time_played" /> android:text="@string/statistics_time_played" />
<TextView <com.joanzapata.iconify.widget.IconTextView
android:id="@+id/timePlayedLabel" android:id="@+id/timePlayedLabel"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="8dp" android:layout_marginLeft="8dp"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:text="@string/wait_icon"
tools:text="0 min" /> tools:text="0 min" />
</TableRow> </TableRow>
@ -48,12 +50,13 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/statistics_total_duration" /> android:text="@string/statistics_total_duration" />
<TextView <com.joanzapata.iconify.widget.IconTextView
android:id="@+id/totalDurationLabel" android:id="@+id/totalDurationLabel"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="8dp" android:layout_marginLeft="8dp"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:text="@string/wait_icon"
tools:text="0 min" /> tools:text="0 min" />
</TableRow> </TableRow>
@ -65,12 +68,13 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/statistics_episodes_on_device" /> android:text="@string/statistics_episodes_on_device" />
<TextView <com.joanzapata.iconify.widget.IconTextView
android:id="@+id/onDeviceLabel" android:id="@+id/onDeviceLabel"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="8dp" android:layout_marginLeft="8dp"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:text="@string/wait_icon"
tools:text="0" /> tools:text="0" />
</TableRow> </TableRow>
@ -82,12 +86,13 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/statistics_space_used" /> android:text="@string/statistics_space_used" />
<TextView <com.joanzapata.iconify.widget.IconTextView
android:id="@+id/spaceUsedLabel" android:id="@+id/spaceUsedLabel"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="8dp" android:layout_marginLeft="8dp"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:text="@string/wait_icon"
tools:text="0 MB" /> tools:text="0 MB" />
</TableRow> </TableRow>