Updated icons (#311)
* Branch * Updated Icons (#13) * update * update beta.yml * nicer icons * update view_list_24.xml * revert changes * Missed one
This commit is contained in:
parent
9e96fd1e20
commit
55bc2add85
16 changed files with 92 additions and 20 deletions
|
@ -667,18 +667,18 @@ class SettingsActivity : AppCompatActivity(), SimpleDialog.OnDialogResultListene
|
|||
val filteredLocations = Location.entries.filter { it.exportable }
|
||||
selectedArray.addAll(List(filteredLocations.size - 1) { false })
|
||||
val dialog = AlertDialog.Builder(this@SettingsActivity, R.style.MyPopup)
|
||||
.setTitle(R.string.import_export_settings)
|
||||
.setTitle(R.string.backup_restore)
|
||||
.setMultiChoiceItems(
|
||||
filteredLocations.map { it.name }.toTypedArray(),
|
||||
selectedArray.toBooleanArray()
|
||||
) { _, which, isChecked ->
|
||||
selectedArray[which] = isChecked
|
||||
}
|
||||
.setPositiveButton(R.string.button_import) { dialog, _ ->
|
||||
.setPositiveButton(R.string.button_restore) { dialog, _ ->
|
||||
openDocumentLauncher.launch(arrayOf("*/*"))
|
||||
dialog.dismiss()
|
||||
}
|
||||
.setNegativeButton(R.string.button_export) { dialog, _ ->
|
||||
.setNegativeButton(R.string.button_backup) { dialog, _ ->
|
||||
if (!selectedArray.contains(true)) {
|
||||
toast(R.string.no_location_selected)
|
||||
return@setNegativeButton
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue