Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

Commit

Permalink
added crashlytics error report to handled exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
markusressel committed Aug 13, 2016
1 parent ff16aaa commit 971d5b6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
import android.view.View;
import android.widget.Toast;

import com.crashlytics.android.Crashlytics;

import java.util.Date;

import eu.power_switch.R;
Expand Down Expand Up @@ -398,6 +400,7 @@ public void onClick(View v) {
*/
private static void showErrorSnackbar(final FragmentActivity activity, View parent, final Throwable e) {
Log.e("Error Snackbar", e);
Crashlytics.logException(e);

// remember the time when the exception was raised
final Date timeRaised = new Date();
Expand Down

0 comments on commit 971d5b6

Please sign in to comment.