]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/res/layout/import_export_coordinatorlayout.xml
Add a warning if a file will be overwritten. https://redmine.stoutner.com/issues/371
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / import_export_coordinatorlayout.xml
index 29b6fe89fccfe68227951737b7d456856feaaffe..b6eebd1fc44a3db4622bc7c5806a8a8fd4d695ff 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 
 <!--
-  Copyright © 2018-2019 Soren Stoutner <soren@stoutner.com>.
+  Copyright © 2018-2020 Soren Stoutner <soren@stoutner.com>.
 
   This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
 
                                 android:onClick="browse" />
                         </LinearLayout>
 
+                        <!-- File notices. -->
+                        <TextView
+                            android:id="@+id/file_does_not_exist_textview"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:layout_margin="5dp"
+                            android:text="@string/file_does_not_exist"
+                            android:textColor="?attr/redText"
+                            android:textAlignment="center" />
+
+                        <TextView
+                            android:id="@+id/file_exists_warning_textview"
+                            android:layout_height="wrap_content"
+                            android:layout_width="wrap_content"
+                            android:layout_gravity="center_horizontal"
+                            android:layout_margin="5dp"
+                            android:text="@string/file_exists_warning"
+                            android:textColor="?attr/redText"
+                            android:textAlignment="center" />
+
                         <!-- OpenKeychain import instructions -->
                         <TextView
                             android:id="@+id/openkeychain_import_instructions_textview"