Implement encrypted feedback

This commit is contained in:
str4d
2016-04-12 12:41:04 +00:00
parent 3bfef877ec
commit c44b6a4095
15 changed files with 447 additions and 250 deletions

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
@@ -11,10 +12,11 @@
android:layout_height="wrap_content">
<TextView
android:id="@+id/title"
style="@style/TextAppearance.AppCompat.Large.Inverse"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/crash_report_title"/>
tools:text="@string/crash_report_title"/>
</android.support.v7.widget.Toolbar>
<RelativeLayout
@@ -35,8 +37,8 @@
android:layout_marginLeft="@dimen/margin_large"
android:layout_marginRight="@dimen/margin_large"
android:layout_marginStart="@dimen/margin_large"
android:hint="@string/describe_crash"
android:inputType="textMultiLine|textCapSentences"/>
android:inputType="textMultiLine|textCapSentences"
tools:hint="@string/describe_crash"/>
<EditText
android:id="@+id/user_email"
@@ -51,13 +53,24 @@
android:inputType="textEmailAddress"
android:maxLines="1"/>
<CheckBox
android:id="@+id/include_debug_report"
android:layout_width="match_parent"
android:layout_height="wrap_content"
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_marginTop="@dimen/margin_small"
android:text="@string/include_debug_report"/>
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_small">
<LinearLayout
android:id="@+id/crash_status"
android:id="@+id/report_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
@@ -78,10 +91,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:indeterminate="true"/>
android:indeterminate="true"
android:visibility="gone"/>
<android.support.design.widget.FloatingActionButton
android:id="@+id/share_crash_report"
android:id="@+id/share_dev_report"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"

View File

@@ -1,21 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/margin_small"
android:textSize="@dimen/text_size_large"/>
android:orientation="horizontal">
<CheckBox
android:id="@+id/include_in_report"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/margin_small"
android:textSize="@dimen/text_size_large"
tools:text="Crash log entry title"/>
</LinearLayout>
<TextView
android:id="@+id/content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/margin_medium"/>
android:layout_marginBottom="@dimen/margin_medium"
tools:text="Crash log entry value"/>
</LinearLayout>

View File

@@ -4,11 +4,13 @@
<string name="nav_drawer_close_description">Close the navigation drawer</string>
<string name="app_name">Briar</string>
<string name="crash_report_title">Briar Crash Report</string>
<string name="feedback_title">Feedback</string>
<string name="describe_crash">Describe what happened</string>
<string name="enter_feedback">Enter your feedback</string>
<string name="optional_contact_email">Optional contact email</string>
<string name="could_not_load_crash_data">Could not load crash data.</string>
<string name="crash_report_saved">Crash report saved. It will be sent the next time you log into Briar.</string>
<string name="crash_report_not_saved">Could not save crash report to disk.</string>
<string name="include_debug_report">Include debug report?</string>
<string name="could_not_load_report_data">Could not load report data.</string>
<string name="dev_report_saved">Report saved. It will be sent the next time you log into Briar.</string>
<string name="ongoing_notification_title">Signed into Briar</string>
<string name="ongoing_notification_text">Touch to show the dashboard.</string>
<string name="setup_title">Briar Setup</string>

View File

@@ -14,6 +14,10 @@
</Preference>
<Preference
android:key="send_feedback"
android:title="Send feedback"/>
</PreferenceCategory>
</PreferenceScreen>