[Android] Code cleanup
Nicolas Pomepuy
git at videolan.org
Tue Jun 1 12:17:27 UTC 2021
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Jun 1 06:57:22 2021 +0200| [427bec4c793248d8dbd337626ecd87f9f9338d88] | committer: Nicolas Pomepuy
Code cleanup
> https://code.videolan.org/videolan/vlc-android/commit/427bec4c793248d8dbd337626ecd87f9f9338d88
---
application/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt | 2 +-
.../src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt | 2 +-
.../src/org/videolan/vlc/gui/browser/MediaBrowserFragment.kt | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt
index b09d96c4a..984a27e46 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt
@@ -403,7 +403,7 @@ open class PlaylistActivity : AudioPlayerContainerActivity(), IEventsHandler<Med
private fun removeItems(items: List<MediaWrapper>) {
val dialog = ConfirmDeleteDialog.newInstance(ArrayList(items))
- dialog.show(supportFragmentManager, RenameDialog::class.simpleName)
+ dialog.show(supportFragmentManager, ConfirmDeleteDialog::class.simpleName)
dialog.setListener {
lifecycleScope.launch {
for (item in items) {
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt b/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
index ecf939e27..14ef64951 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.kt
@@ -358,7 +358,7 @@ abstract class BaseBrowserFragment : MediaBrowserFragment<BrowserModel>(), IRefr
}
}
val dialog = ConfirmDeleteDialog.newInstance(arrayListOf(mw))
- dialog.show(requireActivity().supportFragmentManager, RenameDialog::class.simpleName)
+ dialog.show(requireActivity().supportFragmentManager, ConfirmDeleteDialog::class.simpleName)
dialog.setListener {
if (Permissions.checkWritePermission(requireActivity(), mw, deleteAction)) deleteAction.run()
}
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.kt b/application/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.kt
index 22781ee26..f8d5119b4 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.kt
@@ -126,7 +126,7 @@ abstract class MediaBrowserFragment<T : SortableModel> : BaseFragment(), Filtera
return
}
val dialog = ConfirmDeleteDialog.newInstance(ArrayList(items))
- dialog.show(requireActivity().supportFragmentManager, RenameDialog::class.simpleName)
+ dialog.show(requireActivity().supportFragmentManager, ConfirmDeleteDialog::class.simpleName)
dialog.setListener {
lifecycleScope.launch {
for (item in items) {
@@ -159,7 +159,7 @@ abstract class MediaBrowserFragment<T : SortableModel> : BaseFragment(), Filtera
else -> return false
}
val dialog = ConfirmDeleteDialog.newInstance(arrayListOf(item))
- dialog.show(requireActivity().supportFragmentManager, RenameDialog::class.simpleName)
+ dialog.show(requireActivity().supportFragmentManager, ConfirmDeleteDialog::class.simpleName)
dialog.setListener {
if (item is MediaWrapper) if (Permissions.checkWritePermission(requireActivity(), item, deletionAction)) deletionAction.run() else deletionAction.run()
if (item is Playlist) item.delete()
More information about the Android
mailing list