add menu items for excluding folders
This commit is contained in:
parent
5d7711b89c
commit
1e37c47bd0
4 changed files with 18 additions and 0 deletions
|
@ -119,6 +119,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
|||
R.id.folder_view -> switchToFolderView()
|
||||
R.id.hide_folder -> hideFolder()
|
||||
R.id.unhide_folder -> unhideFolder()
|
||||
R.id.exclude_folder -> excludeFolder()
|
||||
R.id.increase_column_count -> increaseColumnCount()
|
||||
R.id.reduce_column_count -> reduceColumnCount()
|
||||
R.id.settings -> launchSettings()
|
||||
|
@ -165,6 +166,10 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
|||
}
|
||||
}
|
||||
|
||||
private fun excludeFolder() {
|
||||
|
||||
}
|
||||
|
||||
private fun deleteDirectoryIfEmpty() {
|
||||
val file = File(mPath)
|
||||
if (file.isDirectory && file.listFiles()?.isEmpty() == true) {
|
||||
|
|
|
@ -78,6 +78,7 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList<Direc
|
|||
R.id.cab_unpin -> pinFolders(false)
|
||||
R.id.cab_hide -> toggleFoldersVisibility(true)
|
||||
R.id.cab_unhide -> toggleFoldersVisibility(false)
|
||||
R.id.exclude_folder -> excludeFolder()
|
||||
R.id.cab_copy_move -> displayCopyDialog()
|
||||
R.id.cab_select_all -> selectAll()
|
||||
R.id.cab_delete -> askConfirmDelete()
|
||||
|
@ -184,6 +185,10 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList<Direc
|
|||
}
|
||||
}
|
||||
|
||||
private fun excludeFolder() {
|
||||
|
||||
}
|
||||
|
||||
private fun noMediaHandled() {
|
||||
activity.runOnUiThread {
|
||||
listener?.refreshItems()
|
||||
|
|
|
@ -31,6 +31,10 @@
|
|||
android:icon="@drawable/ic_unhide"
|
||||
android:title="@string/unhide_folder"
|
||||
app:showAsAction="ifRoom"/>
|
||||
<item
|
||||
android:id="@+id/cab_exclude"
|
||||
android:title="@string/exclude"
|
||||
app:showAsAction="never"/>
|
||||
<item
|
||||
android:id="@+id/cab_copy_move"
|
||||
android:icon="@drawable/ic_copy"
|
||||
|
|
|
@ -28,6 +28,10 @@
|
|||
android:id="@+id/unhide_folder"
|
||||
android:title="@string/unhide_folder"
|
||||
app:showAsAction="never"/>
|
||||
<item
|
||||
android:id="@+id/exclude_folder"
|
||||
android:title="@string/exclude"
|
||||
app:showAsAction="never"/>
|
||||
<item
|
||||
android:id="@+id/increase_column_count"
|
||||
android:title="@string/increase_column_count"
|
||||
|
|
Loading…
Reference in a new issue