]> git.ktnx.net Git - mobile-ledger.git/commitdiff
do not report data retrieval cancellation to the user
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 2 Sep 2021 06:05:22 +0000 (09:05 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 2 Sep 2021 06:05:22 +0000 (09:05 +0300)
this happens as a direct consequence of user action and just adds stress

app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java

index 8add70b298080bb8fc7dc9338b5c031a03dae0f3..414e4003b644f5a8dc9d840483cbb6d2ed234a3b 100644 (file)
@@ -587,8 +587,8 @@ public class RetrieveTransactionsTask extends Thread {
             finish(new Result("Network error"));
         }
         catch (OperationCanceledException e) {
             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();
         }
         catch (ApiNotSupportedException e) {
             e.printStackTrace();