Hidden volume warning

This commit is contained in:
Matéo Duparc 2020-11-04 18:54:16 +01:00
parent a4df9d3ffa
commit 73189d9d32
3 changed files with 13 additions and 2 deletions

View File

@ -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'

View File

@ -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?) {

View File

@ -192,4 +192,5 @@
<string name="error_retrieving_filename">Unable to retrieve file name for URI: %s</string>
<string name="hidden_volume">Hidden Volume</string>
<string name="error_slash_in_name">Volume name cannot contain slashes</string>
<string name="hidden_volume_warning">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 !</string>
</resources>