replace the "Remove all excluded folders" with an "Add folder"
This commit is contained in:
parent
82a74ebd25
commit
05fb1efe57
|
@ -4,7 +4,6 @@ import android.graphics.PorterDuff
|
|||
import android.os.Bundle
|
||||
import android.view.Menu
|
||||
import android.view.MenuItem
|
||||
import com.simplemobiletools.commons.dialogs.ConfirmationDialog
|
||||
import com.simplemobiletools.gallery.R
|
||||
import com.simplemobiletools.gallery.extensions.config
|
||||
import kotlinx.android.synthetic.main.activity_excluded_folders.*
|
||||
|
@ -46,16 +45,13 @@ class ExcludedFoldersActivity : SimpleActivity() {
|
|||
|
||||
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
||||
when (item.itemId) {
|
||||
R.id.remove_all -> removeAllExcludedFolders()
|
||||
R.id.add_folder -> addExcludedFolder()
|
||||
else -> return super.onOptionsItemSelected(item)
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
private fun removeAllExcludedFolders() {
|
||||
ConfirmationDialog(this, getString(R.string.remove_all_description)) {
|
||||
config.removeAllExcludedFolders()
|
||||
updateExcludedFolders()
|
||||
}
|
||||
private fun addExcludedFolder() {
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<item
|
||||
android:id="@+id/remove_all"
|
||||
android:icon="@drawable/ic_cross"
|
||||
android:title="@string/remove_all"
|
||||
android:id="@+id/add_folder"
|
||||
android:icon="@drawable/ic_plus"
|
||||
android:title="@string/add_folder"
|
||||
app:showAsAction="ifRoom"/>
|
||||
</menu>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<!-- Include folders -->
|
||||
<string name="include_folders">Included folders</string>
|
||||
<string name="manage_included_folders">Manage included folders</string>
|
||||
<string name="add_folder">Add folder</string>
|
||||
|
||||
<!-- Resizing -->
|
||||
<string name="resize">Redimensionar</string>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<!-- Include folders -->
|
||||
<string name="include_folders">Included folders</string>
|
||||
<string name="manage_included_folders">Manage included folders</string>
|
||||
<string name="add_folder">Add folder</string>
|
||||
|
||||
<!-- Resizing -->
|
||||
<string name="resize">Größe ändern</string>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<!-- Include folders -->
|
||||
<string name="include_folders">Included folders</string>
|
||||
<string name="manage_included_folders">Manage included folders</string>
|
||||
<string name="add_folder">Add folder</string>
|
||||
|
||||
<!-- Resizing -->
|
||||
<string name="resize">Redimensionar</string>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<!-- Include folders -->
|
||||
<string name="include_folders">Included folders</string>
|
||||
<string name="manage_included_folders">Manage included folders</string>
|
||||
<string name="add_folder">Add folder</string>
|
||||
|
||||
<!-- Resizing -->
|
||||
<string name="resize">Redimensionner</string>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<!-- Include folders -->
|
||||
<string name="include_folders">Included folders</string>
|
||||
<string name="manage_included_folders">Manage included folders</string>
|
||||
<string name="add_folder">Add folder</string>
|
||||
|
||||
<!-- Resizing -->
|
||||
<string name="resize">Redimensionar</string>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<!-- Include folders -->
|
||||
<string name="include_folders">Included folders</string>
|
||||
<string name="manage_included_folders">Manage included folders</string>
|
||||
<string name="add_folder">Add folder</string>
|
||||
|
||||
<!-- Resizing -->
|
||||
<string name="resize">Resize</string>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<!-- Include folders -->
|
||||
<string name="include_folders">Included folders</string>
|
||||
<string name="manage_included_folders">Manage included folders</string>
|
||||
<string name="add_folder">Add folder</string>
|
||||
|
||||
<!-- Resizing -->
|
||||
<string name="resize">Resize</string>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<!-- Include folders -->
|
||||
<string name="include_folders">Included folders</string>
|
||||
<string name="manage_included_folders">Manage included folders</string>
|
||||
<string name="add_folder">Add folder</string>
|
||||
|
||||
<!-- Resizing -->
|
||||
<string name="resize">Resize</string>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<!-- Include folders -->
|
||||
<string name="include_folders">Included folders</string>
|
||||
<string name="manage_included_folders">Manage included folders</string>
|
||||
<string name="add_folder">Add folder</string>
|
||||
|
||||
<!-- Resizing -->
|
||||
<string name="resize">Zmień rozmiar</string>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<!-- Include folders -->
|
||||
<string name="include_folders">Included folders</string>
|
||||
<string name="manage_included_folders">Manage included folders</string>
|
||||
<string name="add_folder">Add folder</string>
|
||||
|
||||
<!-- Resizing -->
|
||||
<string name="resize">Redimensionar</string>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<!-- Include folders -->
|
||||
<string name="include_folders">Included folders</string>
|
||||
<string name="manage_included_folders">Manage included folders</string>
|
||||
<string name="add_folder">Add folder</string>
|
||||
|
||||
<!-- Resizing -->
|
||||
<string name="resize">Изменить размер</string>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<!-- Include folders -->
|
||||
<string name="include_folders">Pridané priečinky</string>
|
||||
<string name="manage_included_folders">Spravovať pridané priečinky</string>
|
||||
<string name="add_folder">Pridať priečinok</string>
|
||||
|
||||
<!-- Resizing -->
|
||||
<string name="resize">Zmeniť veľkosť</string>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<!-- Include folders -->
|
||||
<string name="include_folders">Included folders</string>
|
||||
<string name="manage_included_folders">Manage included folders</string>
|
||||
<string name="add_folder">Add folder</string>
|
||||
|
||||
<!-- Resizing -->
|
||||
<string name="resize">Ändra storlek</string>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<!-- Include folders -->
|
||||
<string name="include_folders">Included folders</string>
|
||||
<string name="manage_included_folders">Manage included folders</string>
|
||||
<string name="add_folder">Add folder</string>
|
||||
|
||||
<!-- Resizing -->
|
||||
<string name="resize">Yeniden boyutlandır</string>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<!-- Include folders -->
|
||||
<string name="include_folders">Included folders</string>
|
||||
<string name="manage_included_folders">Manage included folders</string>
|
||||
<string name="add_folder">Add folder</string>
|
||||
|
||||
<!-- Resizing -->
|
||||
<string name="resize">缩放</string>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<!-- Include folders -->
|
||||
<string name="include_folders">Included folders</string>
|
||||
<string name="manage_included_folders">Manage included folders</string>
|
||||
<string name="add_folder">Add folder</string>
|
||||
|
||||
<!-- Resizing -->
|
||||
<string name="resize">縮放</string>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<!-- Include folders -->
|
||||
<string name="include_folders">Included folders</string>
|
||||
<string name="manage_included_folders">Manage included folders</string>
|
||||
<string name="add_folder">Add folder</string>
|
||||
|
||||
<!-- Resizing -->
|
||||
<string name="resize">Resize</string>
|
||||
|
|
Loading…
Reference in New Issue