Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiedermann IT-Dienstleistungen <info@niedermann.it>2018-10-12 00:07:49 +0300
committerNiedermann IT-Dienstleistungen <info@niedermann.it>2018-10-12 00:07:49 +0300
commit6c62114bdfbd0c5eb05e56f6bb54bc306bfa6f1e (patch)
treefb7df9c58f9ff237ebca9006e3cfd00b554ea076 /app/src/main/java/it
parent1749ccb837b32ce0ed0c209fd0c4b063788b907a (diff)
Use separate thread and change API-endpoint
Diffstat (limited to 'app/src/main/java/it')
-rw-r--r--app/src/main/java/it/niedermann/nextcloud/deck/MainActivity.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/MainActivity.java b/app/src/main/java/it/niedermann/nextcloud/deck/MainActivity.java
index 83eab404a..2bc3a21a6 100644
--- a/app/src/main/java/it/niedermann/nextcloud/deck/MainActivity.java
+++ b/app/src/main/java/it/niedermann/nextcloud/deck/MainActivity.java
@@ -15,6 +15,7 @@ import android.view.MenuItem;
import android.view.View;
import com.nextcloud.android.sso.api.NextcloudAPI;
+import com.nextcloud.android.sso.exceptions.NextcloudHttpRequestFailedException;
import com.nextcloud.android.sso.helper.SingleAccountHelper;
import com.nextcloud.android.sso.model.SingleSignOnAccount;
@@ -82,7 +83,12 @@ public class MainActivity extends AppCompatActivity
provider.getAPI().boards().subscribe(consumer, new Consumer<Throwable>() {
@Override
public void accept(Throwable throwable) throws Exception {
- throwable.printStackTrace();
+ if (throwable instanceof NextcloudHttpRequestFailedException) {
+ NextcloudHttpRequestFailedException e = (NextcloudHttpRequestFailedException) throwable;
+ e.getMessage(getApplicationContext());
+ e.printStackTrace();
+ }
+ //throwable.printStackTrace();
}
});
}