From 73189d9d32325bc582a5beb6915d4cc7bbebb29a Mon Sep 17 00:00:00 2001 From: Hardcore Sushi Date: Wed, 4 Nov 2020 18:54:16 +0100 Subject: [PATCH] Hidden volume warning --- app/build.gradle | 4 ++-- .../main/java/sushi/hardcore/droidfs/CreateActivity.kt | 10 ++++++++++ app/src/main/res/values/strings.xml | 1 + 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 13b0736..86b956d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -15,8 +15,8 @@ android { applicationId "sushi.hardcore.droidfs" minSdkVersion 21 targetSdkVersion 29 - versionCode 5 - versionName "1.1.10" + versionCode 6 + versionName "1.2.0" ndk { abiFilters 'x86_64', 'armeabi-v7a', 'arm64-v8a' diff --git a/app/src/main/java/sushi/hardcore/droidfs/CreateActivity.kt b/app/src/main/java/sushi/hardcore/droidfs/CreateActivity.kt index 3cdb270..dd4f71e 100644 --- a/app/src/main/java/sushi/hardcore/droidfs/CreateActivity.kt +++ b/app/src/main/java/sushi/hardcore/droidfs/CreateActivity.kt @@ -30,6 +30,16 @@ class CreateActivity : VolumeActionActivity() { onClickCreate(v) true } + switch_hidden_volume.setOnClickListener { + onClickSwitchHiddenVolume(it) + if (switch_hidden_volume.isChecked){ + ColoredAlertDialogBuilder(this) + .setTitle(R.string.warning) + .setMessage(R.string.hidden_volume_warning) + .setPositiveButton(R.string.ok, null) + .show() + } + } } fun pickDirectory(view: View?) { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 6737fa5..fe606da 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -192,4 +192,5 @@ Unable to retrieve file name for URI: %s Hidden Volume Volume name cannot contain slashes + Hidden volumes are stored in the app\'s internal storage. Other apps can\'t see these volumes without root access. However, if you uninstall DroidFS or clear data of the app, all your hidden volumes will be LOST. Be sure to make backups !