diff --git a/Smartphone/src/main/java/eu/power_switch/gui/StatusMessageHandler.java b/Smartphone/src/main/java/eu/power_switch/gui/StatusMessageHandler.java index 14e7e469..8e382dce 100644 --- a/Smartphone/src/main/java/eu/power_switch/gui/StatusMessageHandler.java +++ b/Smartphone/src/main/java/eu/power_switch/gui/StatusMessageHandler.java @@ -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; @@ -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();