Skip to content

Commit

Permalink
feat: Improve navigation in preview slider
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasBourdin88 committed Feb 25, 2025
1 parent bee972f commit 507cb60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ class PreviewHeaderView @JvmOverloads constructor(

fun setPageNumberVisibility(isVisible: Boolean) {
binding.pageNumberChip.isVisible = isVisible
binding.pageNumberChip.isFocusable = false
}

fun setPageNumberValue(currentPage: Int, totalPage: Int) {
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/layout/fragment_preview_slider.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
android:id="@+id/viewPager"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:focusable="false"
android:focusableInTouchMode="false"
android:touchscreenBlocksFocus="true"
android:saveEnabled="false" />

<com.infomaniak.drive.views.PreviewHeaderView
Expand Down

0 comments on commit 507cb60

Please sign in to comment.