mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-02 00:17:41 +01:00
Remove hint file.
This commit is contained in:
@@ -27,7 +27,6 @@ import org.signal.core.util.androidx.DocumentFileUtil.newFile
|
||||
import org.signal.core.util.androidx.DocumentFileUtil.outputStream
|
||||
import org.signal.core.util.androidx.DocumentFileUtil.renameTo
|
||||
import org.signal.core.util.logging.Log
|
||||
import org.thoughtcrime.securesms.R
|
||||
import java.io.File
|
||||
import java.io.IOException
|
||||
import java.io.InputStream
|
||||
@@ -144,13 +143,6 @@ class ArchiveFileSystem private constructor(private val context: Context, root:
|
||||
signalBackups = root.mkdirp(MAIN_DIRECTORY_NAME) ?: throw IOException("Unable to create main backups directory")
|
||||
val filesDirectory = signalBackups.mkdirp("files") ?: throw IOException("Unable to create files directory")
|
||||
filesFileSystem = FilesFileSystem(context, filesDirectory)
|
||||
|
||||
val hintFileName = context.getString(R.string.ArchiveFileSystem__select_this_folder_hint_name)
|
||||
if (!root.hasFile(hintFileName)) {
|
||||
root.createFile("text/plain", hintFileName)
|
||||
?.outputStream(context)
|
||||
?.use { out -> out.write(context.getString(R.string.ArchiveFileSystem__select_this_folder_hint_body).toByteArray()) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4941,8 +4941,6 @@
|
||||
<string name="BackupDialog_please_acknowledge_your_understanding_by_marking_the_confirmation_check_box">Please acknowledge your understanding by marking the confirmation check box.</string>
|
||||
<string name="BackupDialog_delete_backups">Delete backups?</string>
|
||||
<string name="BackupDialog_disable_and_delete_all_local_backups">Disable and delete all local backups?</string>
|
||||
<string name="ArchiveFileSystem__select_this_folder_hint_name">Select this folder, not SignalBackups</string>
|
||||
<string name="ArchiveFileSystem__select_this_folder_hint_body">When configuring Signal backup storage, select this folder — not the SignalBackups subfolder.</string>
|
||||
<string name="BackupDialog_delete_backups_statement">Delete backups</string>
|
||||
<!-- Progress dialog message shown while local backup files are being deleted -->
|
||||
<string name="BackupDialog_deleting_local_backup">Deleting local backup…</string>
|
||||
|
||||
Reference in New Issue
Block a user