1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-24 19:06:53 +01:00

Dashboard: Fix crash on start when Devices is first screen

This commit is contained in:
Arjan Schrijver 2024-04-10 22:11:45 +02:00
parent 6f103b2897
commit cd8e9b5ea6

View File

@ -244,7 +244,7 @@ public class ControlCenterv2 extends AppCompatActivity
});
// Make sure the SwipeRefreshLayout doesn't interfere with the ViewPager2
viewPager.getChildAt(viewPager.getCurrentItem()).setOnTouchListener((v, event) -> {
viewPager.getChildAt(0).setOnTouchListener((v, event) -> {
if (event.getAction() == MotionEvent.ACTION_MOVE) {
swipeLayout.setEnabled(false);
} else {