Skip to content

Commit

Permalink
Avoid filling up save state bundle endlessly because of the ViewPager2
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Jul 8, 2024
1 parent bab1756 commit 650a535
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/main/res/layout/fragment_preview_slider.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@
android:layout_width="match_parent"
android:layout_height="match_parent">

<!-- Setting saveEnabled to false prevents the ViewPager2 from filling up endlessly the save state bundle, as the user
scrolls through the view pager, up to the point where it crashes the app -->
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/viewPager"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="match_parent"
android:saveEnabled="false" />

<com.infomaniak.drive.views.PreviewHeaderView
android:id="@+id/header"
Expand Down

0 comments on commit 650a535

Please sign in to comment.