mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 12:56:49 +01:00
Dashboard: Fix crash on start when Devices is first screen
This commit is contained in:
parent
6f103b2897
commit
cd8e9b5ea6
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user