Permalink
Browse files

Updated method invocation

  • Loading branch information...
cescoffier committed Aug 13, 2011
1 parent b6d447c commit 88118e6faf7d926db5b33ac7ceb73e4735f520a5
Showing with 4 additions and 3 deletions.
  1. +4 −3 androlog/src/main/java/de/akquinet/android/androlog/reporter/Report.java
@@ -29,6 +29,7 @@
import android.view.Display;
import android.view.WindowManager;
import de.akquinet.android.androlog.Log;
+import de.akquinet.android.androlog.LogHelper;
/**
* Report structure.
@@ -112,7 +113,7 @@ private void addDeviceData(JSONObject report) throws JSONException {
JSONObject device = new JSONObject();
device.put("device", Build.DEVICE);
device.put("brand", Build.BRAND);
-
+
Object windowService = context.getSystemService(Context.WINDOW_SERVICE);
if (windowService instanceof WindowManager) {
Display display = ((WindowManager)windowService).getDefaultDisplay();
@@ -163,10 +164,10 @@ private void addReportHeader(JSONObject report) throws JSONException {
}
if (err != null) {
report.put("error", err.getMessage());
- report.put("stackTrace",Log.getStackTraceString(err));
+ report.put("stackTrace",LogHelper.getStackTraceString(err));
if (err.getCause() != null) {
report.put("cause", err.getCause().getMessage());
- report.put("cause.stackTrace",Log.getStackTraceString(err.getCause()));
+ report.put("cause.stackTrace",LogHelper.getStackTraceString(err.getCause()));
}
}

0 comments on commit 88118e6

Please sign in to comment.