From 611365432bacd39157aa815de8cfd043854fcae4 Mon Sep 17 00:00:00 2001 From: Deenbandhu Netam <86369518+Deenu488@users.noreply.github.com> Date: Sat, 11 May 2024 15:02:31 +0530 Subject: [PATCH] Enable auto refresh --- app/src/main/kotlin/org/cosmicide/fragment/EditorFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/org/cosmicide/fragment/EditorFragment.kt b/app/src/main/kotlin/org/cosmicide/fragment/EditorFragment.kt index 18b1fb062..504158558 100644 --- a/app/src/main/kotlin/org/cosmicide/fragment/EditorFragment.kt +++ b/app/src/main/kotlin/org/cosmicide/fragment/EditorFragment.kt @@ -145,7 +145,7 @@ class EditorFragment : BaseBindingFragment() { } }) - TabLayoutMediator(binding.tabLayout, binding.pager) { tab, position -> + TabLayoutMediator(binding.tabLayout, binding.pager, true, false) { tab, position -> tab.text = fileViewModel.files.value!![position].name tab.view.setOnLongClickListener { Log.d("EditorFragment", "onLongClick: $position")