diff --git a/briar-android/res/layout/activity_dev_report.xml b/briar-android/res/layout/activity_dev_report.xml
index 7f0a304d6..cdc892c9e 100644
--- a/briar-android/res/layout/activity_dev_report.xml
+++ b/briar-android/res/layout/activity_dev_report.xml
@@ -19,183 +19,171 @@
+ android:layout_height="match_parent"
+ android:layout_marginEnd="@dimen/margin_large"
+ android:layout_marginLeft="@dimen/margin_large"
+ android:layout_marginRight="@dimen/margin_large"
+ android:layout_marginStart="@dimen/margin_large">
-
+ android:layout_height="wrap_content">
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ android:gravity="center_horizontal"
+ android:orientation="vertical"
+ android:paddingBottom="@dimen/listitem_height_one_line_avatar"
+ android:paddingEnd="@dimen/margin_large"
+ android:paddingLeft="@dimen/margin_large"
+ android:paddingRight="@dimen/margin_large"
+ android:paddingStart="@dimen/margin_large"
+ android:paddingTop="@dimen/margin_small"
+ android:visibility="gone"/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
+ android:textColor="@color/briar_text_secondary"
+ android:textSize="@dimen/text_size_large"/>
+ android:textColor="@color/briar_text_secondary"
+ android:textSize="@dimen/text_size_large"/>
+ android:textColor="@color/briar_text_secondary"
+ android:textSize="@dimen/text_size_large"/>
-
+ android:layout_alignParentLeft="true"
+ android:layout_below="@+id/encrypted"
+ android:text="@string/close"/>
-
+
+
+
-
-
-
\ No newline at end of file
diff --git a/briar-android/res/values/strings.xml b/briar-android/res/values/strings.xml
index c28639ac0..c80a5d7b7 100644
--- a/briar-android/res/values/strings.xml
+++ b/briar-android/res/values/strings.xml
@@ -3,21 +3,25 @@
Open the navigation drawer
Close the navigation drawer
Briar
+
+
Briar Crash Report
- :-(
Sorry, Briar has crashed.
This is not your fault.
Please help us build a better Briar by sending us a crash report.
We promise that the report is encrypted and sent securely.
Feedback
- Describe what happened
+ Describe what happened (optional)
Enter your feedback
- Optional contact email
+ Your email address (optional)
Debug report:
- Include debug report?
+ Include anonymous data about the crash
+ Include anonymous data about this device
Could not load report data.
Send report
+ Close
Report saved. It will be sent the next time you log into Briar.
+
Signed into Briar
Touch to open Briar.
Briar Setup
@@ -87,6 +91,7 @@
- %d forums shared by contacts
Show
+ Hide
Show
Leave Forum
Left Forum
diff --git a/briar-android/src/org/briarproject/android/report/DevReportActivity.java b/briar-android/src/org/briarproject/android/report/DevReportActivity.java
index b938cdadf..e7077e514 100644
--- a/briar-android/src/org/briarproject/android/report/DevReportActivity.java
+++ b/briar-android/src/org/briarproject/android/report/DevReportActivity.java
@@ -14,6 +14,7 @@ import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
+import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.EditText;
@@ -74,7 +75,7 @@ public class DevReportActivity extends BaseCrashReportDialog
private EditText userCommentView = null;
private EditText userEmailView = null;
private CheckBox includeDebugReport = null;
- private View chevron = null;
+ private Button chevron = null;
private LinearLayout report = null;
private View progress = null;
private MenuItem sendReport = null;
@@ -113,9 +114,8 @@ public class DevReportActivity extends BaseCrashReportDialog
final View requestReport = findViewById(R.id.request_report);
userCommentView = (EditText) findViewById(R.id.user_comment);
userEmailView = (EditText) findViewById(R.id.user_email);
- TextView debugReport = (TextView) findViewById(R.id.debug_report);
includeDebugReport = (CheckBox) findViewById(R.id.include_debug_report);
- chevron = findViewById(R.id.chevron);
+ chevron = (Button) findViewById(R.id.chevron);
report = (LinearLayout) findViewById(R.id.report_content);
progress = findViewById(R.id.progress_wheel);
@@ -126,8 +126,12 @@ public class DevReportActivity extends BaseCrashReportDialog
userCommentView.setHint(isFeedback() ? R.string.enter_feedback :
R.string.describe_crash);
- debugReport.setVisibility(isFeedback() ? GONE : VISIBLE);
- includeDebugReport.setVisibility(isFeedback() ? VISIBLE : GONE);
+ if (isFeedback()) {
+ includeDebugReport
+ .setText(getString(R.string.include_debug_report_feedback));
+ } else {
+ includeDebugReport.setChecked(true);
+ }
findViewById(R.id.acceptButton).setOnClickListener(
new View.OnClickListener() {
@@ -151,11 +155,15 @@ public class DevReportActivity extends BaseCrashReportDialog
chevron.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
- chevron.setSelected(!chevron.isSelected());
- if (chevron.isSelected())
+ boolean show =
+ chevron.getText().equals(getString(R.string.show));
+ if (show) {
+ chevron.setText(R.string.hide);
refresh();
- else
+ } else {
+ chevron.setText(R.string.show);
report.setVisibility(GONE);
+ }
}
});
@@ -367,7 +375,7 @@ public class DevReportActivity extends BaseCrashReportDialog
fields.add(field.name());
}
prefEditor.putStringSet(PREF_EXCLUDED_FIELDS, fields);
- prefEditor.commit();
+ prefEditor.apply();
}
if (success) {