Skip to content
Snippets Groups Projects
Commit 3579878f authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Changed the way errorreporting works

parent 33c83f07
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,10 @@ package de.kuschku.quasseldroid_ng.service;
import android.content.Context;
import android.support.annotation.NonNull;
import org.acra.ACRA;
import java.io.IOException;
import java.net.ConnectException;
import de.kuschku.libquassel.BusProvider;
import de.kuschku.libquassel.QuasselClient;
......@@ -98,4 +101,9 @@ public class ClientBackgroundThread implements Runnable {
client().client.login(account.user, account.pass);
}
}
public void onEvent(GeneralErrorEvent event) {
if (!(event.exception instanceof ConnectException))
ACRA.getErrorReporter().handleSilentException(event.exception);
}
}
......@@ -298,8 +298,6 @@ public class MainActivity extends BoundActivity {
public void onEventMainThread(GeneralErrorEvent event) {
Toast.makeText(getApplication(), event.exception.getClass().getSimpleName() + ": " + event.debugInfo, Toast.LENGTH_LONG).show();
if (!(event.exception instanceof IOException))
ACRA.getErrorReporter().handleSilentException(event.exception);
}
public void onEventMainThread(BufferChangeEvent event) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment