I recently upgraded my app to use ViewPager2.
When the user taps the finish-early button I call this code.
setCurrentItem(myLastPageIndex, false) doSomeWor