From ba632a37a66aad3feeac8fcf12afdbe38032049d Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Mon, 26 Nov 2018 21:11:17 -0700 Subject: [PATCH] Add OpenPGP encrypted export. https://redmine.stoutner.com/issues/338 --- .idea/dictionaries/soren.xml | 4 + app/src/free/res/values/strings.xml | 3 + app/src/main/AndroidManifest.xml | 12 + .../activities/ImportExportActivity.java | 479 ++++++++++++------ .../fragments/AboutTabFragment.java | 135 +++-- .../helpers/OrbotProxyHelper.java | 4 +- app/src/main/res/layout/about_tab_version.xml | 63 +-- .../import_export_coordinatorlayout.xml | 68 ++- app/src/main/res/values-es/strings.xml | 4 - app/src/main/res/values-it/strings.xml | 4 - app/src/main/res/values-ru/strings.xml | 4 - app/src/main/res/values/strings.xml | 14 +- app/src/main/res/xml/file_provider_paths.xml | 33 ++ 13 files changed, 576 insertions(+), 251 deletions(-) create mode 100644 app/src/main/res/xml/file_provider_paths.xml diff --git a/.idea/dictionaries/soren.xml b/.idea/dictionaries/soren.xml index c96e514b..5c9a66a3 100644 --- a/.idea/dictionaries/soren.xml +++ b/.idea/dictionaries/soren.xml @@ -27,6 +27,7 @@ buildapi buildversion buratti + cardview checkedtextview chromebooks chromeversion @@ -64,6 +65,7 @@ fbee fdfilter fdid + fileprovider firebase fontsize framelayout @@ -99,6 +101,7 @@ nist nojs oname + openkeychain openpgp orbot panopticlick @@ -143,6 +146,7 @@ subdomains subfolders sublists + sufficientlysecure swipetorefresh tablayout techrepublic diff --git a/app/src/free/res/values/strings.xml b/app/src/free/res/values/strings.xml index 9aae5fc5..af5d2675 100644 --- a/app/src/free/res/values/strings.xml +++ b/app/src/free/res/values/strings.xml @@ -19,6 +19,9 @@ along with Privacy Browser. If not, see . --> + + com.stoutner.privacybrowser.fileprovider.free + Privacy Browser Free diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 028a7e3b..c957349d 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -65,6 +65,18 @@ android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="@string/google_app_id" /> + + + + + + + android:layout_toEndOf="@id/icon" /> + android:layout_below="@id/privacy_browser_textview" + android:layout_toEndOf="@id/icon" /> @@ -199,37 +204,37 @@ android:paddingTop="12dp" /> diff --git a/app/src/main/res/layout/import_export_coordinatorlayout.xml b/app/src/main/res/layout/import_export_coordinatorlayout.xml index f3c7cefe..67b0cfd7 100644 --- a/app/src/main/res/layout/import_export_coordinatorlayout.xml +++ b/app/src/main/res/layout/import_export_coordinatorlayout.xml @@ -72,7 +72,10 @@ android:layout_height="match_parent" android:layout_width="match_parent" android:orientation="vertical" - android:layout_margin="10dp" > + android:layout_marginTop="10dp" + android:layout_marginBottom="20dp" + android:layout_marginStart="10dp" + android:layout_marginEnd="10dp" > + + + + + + + android:layout_marginTop="10dp" + android:layout_marginBottom="20dp" + android:layout_marginStart="10dp" + android:layout_marginEnd="10dp" > - + android:layout_gravity="center_horizontal" + android:orientation="horizontal" > + + + + + + + +