From 3d22a70012afb1ba6e6a8b58a7d0696b3f448c57 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 9 Nov 2015 10:02:18 +0100 Subject: [PATCH] Cleanup --- .../main/java/eu/faircode/netguard/Util.java | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/app/src/main/java/eu/faircode/netguard/Util.java b/app/src/main/java/eu/faircode/netguard/Util.java index bae01d5d..2c75d4ae 100644 --- a/app/src/main/java/eu/faircode/netguard/Util.java +++ b/app/src/main/java/eu/faircode/netguard/Util.java @@ -143,36 +143,6 @@ public class Util { } } - public static void sendCrashReport(Throwable ex, Context context) { - ApplicationErrorReport report = new ApplicationErrorReport(); - report.packageName = report.processName = context.getPackageName(); - report.time = System.currentTimeMillis(); - report.type = ApplicationErrorReport.TYPE_CRASH; - report.systemApp = false; - - ApplicationErrorReport.CrashInfo crash = new ApplicationErrorReport.CrashInfo(); - crash.exceptionClassName = ex.getClass().getSimpleName(); - crash.exceptionMessage = ex.getMessage(); - - StringWriter writer = new StringWriter(); - PrintWriter printer = new PrintWriter(writer); - ex.printStackTrace(printer); - - crash.stackTrace = writer.toString(); - - StackTraceElement stack = ex.getStackTrace()[0]; - crash.throwClassName = stack.getClassName(); - crash.throwFileName = stack.getFileName(); - crash.throwLineNumber = stack.getLineNumber(); - crash.throwMethodName = stack.getMethodName(); - - report.crashInfo = crash; - - Intent intent = new Intent(Intent.ACTION_APP_ERROR); - intent.putExtra(Intent.EXTRA_BUG_REPORT, report); - context.startActivity(intent); - } - public static void sendLogcat(final String tag, final Context context) { AsyncTask task = new AsyncTask() { @Override