mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 19:42:17 +02:00
code cleanup
This commit is contained in:
parent
3079d7f686
commit
ad6faeb64f
3 changed files with 15 additions and 21 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue