From 28f2706f328ac0555ef470426f930a44d1c90ce3 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sun, 15 May 2022 09:18:12 +0200 Subject: [PATCH] Show spinner while loading statistics --- ui/i18n/src/main/res/values/strings.xml | 1 + ui/statistics/build.gradle | 2 ++ .../src/main/res/layout/feed_statistics.xml | 15 ++++++++++----- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/ui/i18n/src/main/res/values/strings.xml b/ui/i18n/src/main/res/values/strings.xml index 0073eebf5..aa7fa18d4 100644 --- a/ui/i18n/src/main/res/values/strings.xml +++ b/ui/i18n/src/main/res/values/strings.xml @@ -708,6 +708,7 @@ Space used: Episodes started/total: View for all podcasts ยป + {fa-spinner} Importing subscriptions from single-purpose apps… diff --git a/ui/statistics/build.gradle b/ui/statistics/build.gradle index cca840989..53ebd5acc 100644 --- a/ui/statistics/build.gradle +++ b/ui/statistics/build.gradle @@ -30,4 +30,6 @@ dependencies { annotationProcessor "com.github.bumptech.glide:compiler:$glideVersion" implementation "io.reactivex.rxjava2:rxandroid:$rxAndroidVersion" implementation "io.reactivex.rxjava2:rxjava:$rxJavaVersion" + implementation "com.joanzapata.iconify:android-iconify-fontawesome:$iconifyVersion" + implementation "com.joanzapata.iconify:android-iconify-material:$iconifyVersion" } diff --git a/ui/statistics/src/main/res/layout/feed_statistics.xml b/ui/statistics/src/main/res/layout/feed_statistics.xml index 7897a7d5f..6b9a7fa4c 100644 --- a/ui/statistics/src/main/res/layout/feed_statistics.xml +++ b/ui/statistics/src/main/res/layout/feed_statistics.xml @@ -13,12 +13,13 @@ android:layout_height="wrap_content" android:text="@string/statistics_episodes_started_total" /> - @@ -30,12 +31,13 @@ android:layout_height="wrap_content" android:text="@string/statistics_time_played" /> - @@ -48,12 +50,13 @@ android:layout_height="wrap_content" android:text="@string/statistics_total_duration" /> - @@ -65,12 +68,13 @@ android:layout_height="wrap_content" android:text="@string/statistics_episodes_on_device" /> - @@ -82,12 +86,13 @@ android:layout_height="wrap_content" android:text="@string/statistics_space_used" /> -