add override button to security problem dialog
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:custom="http://schemas.android.com/apk/res-auto"
|
||||
tools:showIn="@layout/remote_security_issue_dialog">
|
||||
|
||||
<TextView
|
||||
@@ -21,32 +22,98 @@
|
||||
tools:text="The key this message was sent by is using an outdated algorithm, and is no longer considered secure!\n\nThe algorithm in use is DSA 1024 bit, which has been considered insecure since 2010."
|
||||
/>
|
||||
|
||||
<LinearLayout
|
||||
<org.sufficientlysecure.keychain.ui.widget.ToolableViewAnimator
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/dialog_insecure_recommend_layout">
|
||||
android:id="@+id/dialog_insecure_secondary_layout"
|
||||
android:inAnimation="@anim/fade_in"
|
||||
android:outAnimation="@anim/fade_out"
|
||||
android:measureAllChildren="true"
|
||||
custom:initialView="3">
|
||||
|
||||
<TextView
|
||||
<android.support.v4.widget.Space
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textAppearance="?android:textAppearanceMedium"
|
||||
android:text="@string/dialog_insecure_recommend_title"
|
||||
android:id="@+id/dialog_title_2"
|
||||
/>
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dialog_insecure_recommend_text"
|
||||
android:layout_width="wrap_content"
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center_vertical"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
tools:text="The key in use is insecure, and cannot be updated. To communicate securely, the sender must create a new key!"
|
||||
/>
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textAppearance="?android:textAppearanceMedium"
|
||||
android:text="@string/dialog_insecure_recommend_title"
|
||||
android:id="@+id/dialog_title_2"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dialog_insecure_recommend_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center_vertical"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
tools:text="The key in use is insecure, and cannot be updated. To communicate securely, the sender must create a new key!"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textAppearance="?android:textAppearanceMedium"
|
||||
android:textColor="@color/android_red_light"
|
||||
android:text="@string/dialog_insecure_override_title"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:id="@+id/dialog_insecure_override_text"
|
||||
android:gravity="center_vertical"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
tools:text="@string/dialog_insecure_override"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textAppearance="?android:textAppearanceMedium"
|
||||
android:text="@string/dialog_insecure_override_ok_title"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center_vertical"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:text="@string/dialog_insecure_override_ok"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</org.sufficientlysecure.keychain.ui.widget.ToolableViewAnimator>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</merge>
|
||||
|
||||
|
||||
@@ -54,8 +54,6 @@
|
||||
tools:ignore="UselessParent">
|
||||
|
||||
<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="wrap_content"
|
||||
android:orientation="vertical"
|
||||
@@ -85,7 +83,31 @@
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="View Key"
|
||||
android:text="@string/dialog_insecure_button_override"
|
||||
android:id="@+id/button_override"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible"
|
||||
style="?buttonBarButtonStyle" />
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/dialog_insecure_button_undo"
|
||||
android:id="@+id/button_override_undo"
|
||||
android:visibility="gone"
|
||||
style="?buttonBarButtonStyle" />
|
||||
|
||||
|
||||
<android.support.v4.widget.Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/dialog_insecure_button_view_key"
|
||||
android:id="@+id/button_view_key"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible"
|
||||
@@ -94,7 +116,7 @@
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Got it"
|
||||
android:text="@string/dialog_insecure_button_ok"
|
||||
android:id="@+id/button_allow"
|
||||
style="?buttonBarButtonStyle" />
|
||||
|
||||
|
||||
@@ -1869,5 +1869,13 @@
|
||||
|
||||
<string name="insecure_symmetric_algo">"This message was encrypted with an insecure algorithm."</string>
|
||||
<string name="insecure_hash_algo">"This message was signed using an insecure algorithm."</string>
|
||||
<string name="dialog_insecure_override">If you don\'t want to be warned about this security problem in the future, you can suppress this warning. To do so, press the Suppress button %d more times.</string>
|
||||
<string name="dialog_insecure_override_title">Suppress this warning</string>
|
||||
<string name="dialog_insecure_override_ok_title">Warning suppressed</string>
|
||||
<string name="dialog_insecure_override_ok">The security warning (for this key/message) will not be shown again in the future.</string>
|
||||
<string name="dialog_insecure_button_override">Suppress</string>
|
||||
<string name="dialog_insecure_button_undo">Undo</string>
|
||||
<string name="dialog_insecure_button_view_key">View Key</string>
|
||||
<string name="dialog_insecure_button_ok">Got it</string>
|
||||
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user