From 2dbf35771643d7799bdc96fe9cd5c0a465f75c71 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Wed, 2 Jan 2019 20:45:07 +0000 Subject: [PATCH] handle cancellation --- .../mobileledger/async/RetrieveAccountsTask.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/async/RetrieveAccountsTask.java b/app/src/main/java/net/ktnx/mobileledger/async/RetrieveAccountsTask.java index 83f15fb7..94eaa1bd 100644 --- a/app/src/main/java/net/ktnx/mobileledger/async/RetrieveAccountsTask.java +++ b/app/src/main/java/net/ktnx/mobileledger/async/RetrieveAccountsTask.java @@ -19,6 +19,7 @@ package net.ktnx.mobileledger.async; import android.content.SharedPreferences; import android.database.sqlite.SQLiteDatabase; +import android.os.OperationCanceledException; import android.util.Log; import net.ktnx.mobileledger.R; @@ -90,6 +91,8 @@ public class RetrieveAccountsTask extends android.os.AsyncTask