[Android] Update VideoGridFragment title when renaming a group

Nicolas Pomepuy git at videolan.org
Thu Apr 30 15:20:46 CEST 2020


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Apr 30 13:44:56 2020 +0200| [76b21f5fcfac36a0cd0c1f3d50a35e75b79a429a] | committer: Nicolas Pomepuy

Update VideoGridFragment title when renaming a group

> https://code.videolan.org/videolan/vlc-android/commit/76b21f5fcfac36a0cd0c1f3d50a35e75b79a429a
---

 .../vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt    | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
index cdcb822dd..4bba2e5d9 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
@@ -467,6 +467,9 @@ class VideoGridFragment : MediaBrowserFragment<VideosViewModel>(), SwipeRefreshL
     private fun renameGroup(media: VideoGroup) {
         RenameDialog.newInstance(media) { newName ->
             viewModel.renameGroup(media, newName)
+            (activity as? AppCompatActivity)?.run {
+                supportActionBar?.title = newName
+            }
         }.show(requireActivity().supportFragmentManager, RenameDialog::class.simpleName)
     }
 



More information about the Android mailing list