From 48051e67bdf58da8525d31e5a24855c7705f5e56 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 3 Jun 2020 10:05:19 +0200 Subject: [PATCH] Added logging --- .../main/java/eu/faircode/email/SwipeRefreshLayoutEx.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/SwipeRefreshLayoutEx.java b/app/src/main/java/eu/faircode/email/SwipeRefreshLayoutEx.java index 2290bf3663..1126472a18 100644 --- a/app/src/main/java/eu/faircode/email/SwipeRefreshLayoutEx.java +++ b/app/src/main/java/eu/faircode/email/SwipeRefreshLayoutEx.java @@ -46,6 +46,8 @@ public class SwipeRefreshLayoutEx extends SwipeRefreshLayout { if (this.refreshing == refreshing) return; + Log.i("Refreshing=" + this.refreshing + "/" + refreshing + " muted=" + muted + " event=set"); + this.refreshing = refreshing; removeCallbacks(delayedDisable); @@ -76,6 +78,7 @@ public class SwipeRefreshLayoutEx extends SwipeRefreshLayout { public void resetRefreshing() { // Restart spinner after screen off, etc if (super.isRefreshing()) { + Log.i("Refreshing=" + refreshing + " muted=" + muted + " event=reset"); super.setRefreshing(false); super.setRefreshing(true); } @@ -84,6 +87,7 @@ public class SwipeRefreshLayoutEx extends SwipeRefreshLayout { private final Runnable delayedDisable = new Runnable() { @Override public void run() { + Log.i("Refreshing=" + refreshing + " muted=" + muted + " event=disable"); if (!refreshing) SwipeRefreshLayoutEx.super.setRefreshing(refreshing); } @@ -92,6 +96,7 @@ public class SwipeRefreshLayoutEx extends SwipeRefreshLayout { private final Runnable delayedMute = new Runnable() { @Override public void run() { + Log.i("Refreshing=" + refreshing + " muted=" + muted + " event=mute"); if (refreshing) { muted = true; SwipeRefreshLayoutEx.super.setRefreshing(false);