This repository was archived by the owner on Oct 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
app/src/main/java/app/revanced/integrations/fenster/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ fun MotionEvent.getSwipeControlZone(context: Context): SwipeControlZone {
3838 // check in what detection zone the event is in
3939 val _40dp = 40 .applyDimension(context, TypedValue .COMPLEX_UNIT_DIP ).toFloat()
4040 val _80dp = 80 .applyDimension(context, TypedValue .COMPLEX_UNIT_DIP ).toFloat()
41- val _220dp = 220 .applyDimension(context, TypedValue .COMPLEX_UNIT_DIP ).toFloat()
41+ val _200dp = 200 .applyDimension(context, TypedValue .COMPLEX_UNIT_DIP ).toFloat()
4242
4343 // Y- Axis:
4444 // -------- 0
@@ -60,13 +60,13 @@ fun MotionEvent.getSwipeControlZone(context: Context): SwipeControlZone {
6060 // X- Axis:
6161 // 0 xBrigStart xBrigEnd xVolStart xVolEnd screenWidth
6262 // | | | | | |
63- // | 40dp | 220dp | | 220dp | 40dp |
63+ // | 40dp | 200dp | | 200dp | 40dp |
6464 // | <------> | <------> | <------> | <------> | <------> |
6565 // | dead | brightness | dead | volume | dead |
6666 val xBrightStart = _40dp
67- val xBrightEnd = xBrightStart + _220dp
67+ val xBrightEnd = xBrightStart + _200dp
6868 val xVolEnd = screenWidth - _40dp
69- val xVolStart = xVolEnd - _220dp
69+ val xVolStart = xVolEnd - _200dp
7070
7171 // test detection zone
7272 if (y in yDeadTop.. yDeadBtm) {
You can’t perform that action at this time.
0 commit comments