(misc) remove redundant code

Signed-off-by: androidacy-user <opensource@androidacy.com>
master
androidacy-user 1 year ago
parent cbc39eadc6
commit 6ba7ac5e90

@ -2,15 +2,12 @@ package com.fox2code.mmm;
import android.annotation.SuppressLint;
import android.content.ClipboardManager;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.EditText;
import android.widget.Toast;
import com.fox2code.foxcompat.app.FoxActivity;
import com.fox2code.foxcompat.app.FoxApplication;
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
import com.google.android.material.textview.MaterialTextView;
@ -30,14 +27,6 @@ public class CrashHandler extends FoxActivity {
Timber.d("CrashHandler.onCreate: intent=%s", getIntent());
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_crash_handler);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
try {
// per process webview data dir
WebView.setDataDirectorySuffix(FoxApplication.getProcessName());
} catch (Exception e) {
Timber.e(e, "CrashHandler.onCreate: Failed to set webview data directory suffix");
}
}
// set crash_details MaterialTextView to the exception passed in the intent or unknown if null
// convert stacktrace from array to string, and pretty print it (first line is the exception, the rest is the stacktrace, with each line indented by 4 spaces)
MaterialTextView crashDetails = findViewById(R.id.crash_details);

Loading…
Cancel
Save