1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 19:42:17 +02:00

code cleanup

This commit is contained in:
Nikolay Pultsin 2015-06-11 18:56:59 +01:00
parent 3079d7f686
commit ad6faeb64f
3 changed files with 15 additions and 21 deletions

View file

@ -30,7 +30,6 @@ public abstract class XmlUtil {
Xml.parse(file.getInputStream(), Xml.Encoding.UTF_8, handler);
return true;
} catch (Exception e) {
e.printStackTrace();
return false;
}
}

View file

@ -52,26 +52,22 @@ public class BugReportActivity extends Activity implements ErrorKeys {
reportTextView.append("FBReader " + versionName + " has been crached. You can send the report to developers.\n\n");
reportTextView.append(reportText);
findViewById(R.id.send_report).setOnClickListener(
new View.OnClickListener() {
public void onClick(View view) {
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_EMAIL, new String[] { "exception@geometerplus.com" });
sendIntent.putExtra(Intent.EXTRA_TEXT, reportText.toString());
sendIntent.putExtra(Intent.EXTRA_SUBJECT, "FBReader " + versionName + " exception report");
sendIntent.setType("message/rfc822");
startActivity(sendIntent);
finish();
}
findViewById(R.id.send_report).setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_EMAIL, new String[] { "exception@geometerplus.com" });
sendIntent.putExtra(Intent.EXTRA_TEXT, reportText.toString());
sendIntent.putExtra(Intent.EXTRA_SUBJECT, "FBReader " + versionName + " exception report");
sendIntent.setType("message/rfc822");
startActivity(sendIntent);
finish();
}
);
});
findViewById(R.id.cancel_report).setOnClickListener(
new View.OnClickListener() {
public void onClick(View view) {
finish();
}
findViewById(R.id.cancel_report).setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
finish();
}
);
});
}
}

View file

@ -19,13 +19,12 @@
package org.geometerplus.zlibrary.ui.android.view;
import java.util.*;
import java.io.*;
import java.util.*;
import org.xml.sax.Attributes;
import org.xml.sax.helpers.DefaultHandler;
import android.content.res.AssetManager;
import android.graphics.Typeface;
import org.geometerplus.zlibrary.core.filesystem.ZLFile;