From 2a7d94ca3152400055949215c559a7229e202efe Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 2 Sep 2021 09:05:22 +0300 Subject: [PATCH] do not report data retrieval cancellation to the user this happens as a direct consequence of user action and just adds stress --- .../net/ktnx/mobileledger/async/RetrieveTransactionsTask.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java b/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java index 8add70b2..414e4003 100644 --- a/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java +++ b/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java @@ -587,8 +587,8 @@ public class RetrieveTransactionsTask extends Thread { finish(new Result("Network error")); } catch (OperationCanceledException e) { - e.printStackTrace(); - finish(new Result("Operation cancelled")); + Logger.debug("RTT", "Retrieval was cancelled", e); + finish(new Result(null)); } catch (ApiNotSupportedException e) { e.printStackTrace(); -- 2.39.5