From: Damyan Ivanov Date: Thu, 2 Sep 2021 06:05:22 +0000 (+0300) Subject: do not report data retrieval cancellation to the user X-Git-Tag: v0.20.1~5 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=2a7d94ca3152400055949215c559a7229e202efe;p=mobile-ledger.git do not report data retrieval cancellation to the user this happens as a direct consequence of user action and just adds stress --- 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();