1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 12:56:49 +01:00

ActivitySummariesActivity:FIXME unreachable reload

This commit is contained in:
Ganblejs 2024-03-05 02:14:03 +01:00 committed by José Rebelo
parent 57c0c4dfcb
commit a59b5de343

View File

@ -96,7 +96,7 @@ public class ActivitySummariesActivity extends AbstractListActivity<BaseActivity
if (device.isBusy()) {
swipeLayout.setRefreshing(true);
} else {
boolean wasBusy = swipeLayout.isRefreshing();
boolean wasBusy = swipeLayout.isRefreshing(); // FIXME: This check of swipeLayout.isRefreshing does not cover the case where fetching was initiated by user clicking the blue button with a circle-arrow. In that case no auto-reload will happen.
swipeLayout.setRefreshing(false);
if (wasBusy) {
refresh();