From 88a250ff5c46c2cf28e603a262713cf45eba438f Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Fri, 6 Dec 2019 12:33:50 -0300 Subject: [PATCH] Use separate dev config and document existing config Attention: This also changes the action to launch restore activity --- app/src/debug/res/values/config.xml | 10 ++++++++++ app/src/main/AndroidManifest.xml | 2 +- .../seedvault/ui/RequireProvisioningActivity.kt | 2 +- app/src/main/res/values/config.xml | 12 ++++++++++-- 4 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 app/src/debug/res/values/config.xml diff --git a/app/src/debug/res/values/config.xml b/app/src/debug/res/values/config.xml new file mode 100644 index 00000000..31da4368 --- /dev/null +++ b/app/src/debug/res/values/config.xml @@ -0,0 +1,10 @@ + + + true + + + com.android.externalstorage.documents + org.nextcloud.documents + org.nextcloud.beta.documents + + diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index c2a7187c..88fb2c03 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -58,7 +58,7 @@ android:label="@string/restore_title" android:theme="@style/AppTheme.NoActionBar"> - + diff --git a/app/src/main/java/com/stevesoltys/seedvault/ui/RequireProvisioningActivity.kt b/app/src/main/java/com/stevesoltys/seedvault/ui/RequireProvisioningActivity.kt index 9410c931..cffe2bfc 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/ui/RequireProvisioningActivity.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/ui/RequireProvisioningActivity.kt @@ -14,7 +14,7 @@ const val REQUEST_CODE_RECOVERY_CODE = 3 const val INTENT_EXTRA_IS_RESTORE = "isRestore" const val INTENT_EXTRA_IS_SETUP_WIZARD = "isSetupWizard" -private const val ACTION_SETUP_WIZARD = "com.stevesoltys.seedvault.restore.RESTORE_BACKUP" +private const val ACTION_SETUP_WIZARD = "com.stevesoltys.seedvault.RESTORE_BACKUP" private val TAG = RequireProvisioningActivity::class.java.name diff --git a/app/src/main/res/values/config.xml b/app/src/main/res/values/config.xml index be0bbc9e..b2a26e1d 100644 --- a/app/src/main/res/values/config.xml +++ b/app/src/main/res/values/config.xml @@ -1,11 +1,19 @@ - true + + false + + com.android.externalstorage.documents org.nextcloud.documents - org.nextcloud.beta.documents