Skip to content

Commit

Permalink
Update CrashReporterActivity.java
Browse files Browse the repository at this point in the history
  • Loading branch information
tretdm committed Dec 3, 2023
1 parent fdc3666 commit 6aa1831
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package uk.openvk.android.legacy.ui.core.activities;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
Expand All @@ -19,9 +18,6 @@

import org.acra.ACRA;
import org.acra.BaseCrashReportDialog;
import org.acra.CrashReportDialog;
import org.acra.ReportField;
import org.acra.collector.CrashReportData;

import java.io.BufferedReader;
import java.io.IOException;
Expand All @@ -32,10 +28,6 @@
import uk.openvk.android.legacy.R;
import uk.openvk.android.legacy.ui.OvkAlertDialog;

import static org.acra.ACRA.LOG_TAG;
import static org.acra.ReportField.USER_COMMENT;
import static org.acra.ReportField.USER_EMAIL;

/**
* OPENVK LEGACY LICENSE NOTIFICATION
*
Expand Down Expand Up @@ -72,7 +64,6 @@ protected void onCreate(Bundle savedInstanceState) {
((TextView) view.findViewById(R.id.crash_description))
.setMovementMethod(LinkMovementMethod.getInstance());

Process process = null;
try {
writeLog();
} catch (IOException e) {
Expand Down Expand Up @@ -135,7 +126,7 @@ private void writeLog() throws IOException {
new InputStreamReader(process.getInputStream()));

final StringBuilder log = new StringBuilder();
String line = "";
String line;
OvkApplication ovk = ((OvkApplication) getApplicationContext());
SharedPreferences instance_prefs = getSharedPreferences("instance", 0);
SharedPreferences global_prefs =
Expand Down Expand Up @@ -183,7 +174,7 @@ private void writeLog() throws IOException {
}
final String crash_report = String.format("%s%s", header, log.toString());
((EditText) view.findViewById(R.id.crash_report)).setText(crash_report);
((EditText) view.findViewById(R.id.crash_report)).setOnLongClickListener(new View.OnLongClickListener() {
view.findViewById(R.id.crash_report).setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
Toast.makeText(
Expand Down

0 comments on commit 6aa1831

Please sign in to comment.