From 3f2b648b19a38ed8c06ca1ced03af5a3d5657609 Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Mon, 19 Aug 2024 20:52:57 +0200 Subject: [PATCH] fix "load more" progressbar sometimes not showing up (#4618) I don't know why exactly, but when the ViewHolder gets recycled and the ProgressBar is set to visible again, it just doesn't show anything. It seems to be a bug in the platform ProgressBar, and it doesn't happen on all devices. Replacing it with a CircularProgressIndicator fixes the bug and looks the same. Reported here: https://github.com/tuskyapp/Tusky/issues/4493#issuecomment-2182407513 --- app/src/main/res/layout/item_status_placeholder.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/res/layout/item_status_placeholder.xml b/app/src/main/res/layout/item_status_placeholder.xml index 4159e6bab..39ab1526a 100644 --- a/app/src/main/res/layout/item_status_placeholder.xml +++ b/app/src/main/res/layout/item_status_placeholder.xml @@ -15,10 +15,11 @@ android:textSize="?attr/status_text_large" android:textStyle="bold" /> - + android:layout_gravity="center" + android:indeterminate="true" />