diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2014-03-09 13:21:28 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2014-03-09 13:21:28 +0100 |
commit | baf0d6478750bb59e3f883fb7f814a92f27b8a29 (patch) | |
tree | 60652babff25bf35dd682540d655a28d8b9d78e1 /src/eu/siacs/conversations/ui | |
parent | 05386b5052b29d47e7be2a5acc52fc524862e5a8 (diff) |
exception handler
Diffstat (limited to 'src/eu/siacs/conversations/ui')
-rw-r--r-- | src/eu/siacs/conversations/ui/XmppActivity.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/ui/XmppActivity.java b/src/eu/siacs/conversations/ui/XmppActivity.java index 18df6f5b6..2f1b1d502 100644 --- a/src/eu/siacs/conversations/ui/XmppActivity.java +++ b/src/eu/siacs/conversations/ui/XmppActivity.java @@ -3,6 +3,7 @@ package eu.siacs.conversations.ui; import eu.siacs.conversations.R; import eu.siacs.conversations.services.XmppConnectionService; import eu.siacs.conversations.services.XmppConnectionService.XmppConnectionBinder; +import eu.siacs.conversations.utils.ExceptionHelper; import android.app.Activity; import android.app.AlertDialog; import android.app.AlertDialog.Builder; @@ -10,6 +11,7 @@ import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; +import android.os.Bundle; import android.os.IBinder; import android.view.MenuItem; import android.view.View; @@ -19,6 +21,7 @@ public abstract class XmppActivity extends Activity { public XmppConnectionService xmppConnectionService; public boolean xmppConnectionServiceBound = false; protected boolean handledViewIntent = false; + protected ServiceConnection mConnection = new ServiceConnection() { @Override @@ -93,4 +96,10 @@ public abstract class XmppActivity extends Activity { } return super.onOptionsItemSelected(item); } + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + ExceptionHelper.init(getApplicationContext()); + } } |