Skip to content

Conversation

@dhanuarf
Copy link
Contributor

@dhanuarf dhanuarf commented Jul 2, 2025

PR Summary: #24

            * Fixed activation view filling the whole screen on horizontal orientation with slightly modified `calculateActivationIndicatorSize`. Instead of using dip
              it is now using percentage so that the height in vertical orientation is proportional to the horizontal orientation height
            * Added `system gesture exclusion rects` to prevent conflicting with android's back gesture starting Android 10
            * Added option to display hint on the activation area
@devmil devmil closed this Jul 2, 2025
@devmil devmil reopened this Jul 2, 2025
@devmil
Copy link
Owner

devmil commented Jul 2, 2025

you need to do another master merge. I broke the tests yesterday but now they are fixed

Comment on lines +669 to +674
val exclusionRects = mutableListOf<Rect>()
val exclusionRect = Rect(0, 0,activationRect.width(), activationRect.height())
exclusionRects.add(exclusionRect)
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q){ // Android 10 and up
result.activationView!!.systemGestureExclusionRects = exclusionRects
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!!

@dhanuarf
Copy link
Contributor Author

dhanuarf commented Jul 3, 2025

ok done

@devmil
Copy link
Owner

devmil commented Jul 3, 2025

Nice. Really thanks for your work! I didn't even think that there is a way to exclude certain areas from the back gesture. Now I can use my own app again on my main phone 🤣

@devmil devmil merged commit 1568261 into devmil:master Jul 3, 2025
1 check passed
@dhanuarf
Copy link
Contributor Author

dhanuarf commented Jul 4, 2025

Nice. Really thanks for your work! I didn't even think that there is a way to exclude certain areas from the back gesture. Now I can use my own app again on my main phone 🤣

I also got that idea from Samsung's Edge Panel, that feature never interfere with the back gesture so got me wondering if there's a function to exclude some parts of the screen to disable system gesture. Turns out there is.

@dhanuarf
Copy link
Contributor Author

dhanuarf commented Jul 4, 2025

The F-Droid release hasnt been updated since 2018, is there any plan to update it? Or maybe release the prebuilt APK here on github as well?

@dhanuarf
Copy link
Contributor Author

dhanuarf commented Jul 4, 2025

Ugh apparently, there's a vertical size limit on the exclusionRect, it says here that the maximum is 200dp.

So if you set the activationView height quite big, the top side of the activation area is still conflicting with the back gesture. The 200dp limit lives on the bottom side

@devmil
Copy link
Owner

devmil commented Jul 4, 2025

Ugh apparently, there's a vertical size limit on the exclusionRect, it says here that the maximum is 200dp.

So if you set the activationView height quite big, the top side of the activation area is still conflicting with the back gesture. The 200dp limit lives on the bottom side

Ok. This means that we have to limit the activation size in that case...

@devmil
Copy link
Owner

devmil commented Jul 13, 2025

The F-Droid release hasnt been updated since 2018, is there any plan to update it? Or maybe release the prebuilt APK here on github as well?

I missed to push the tags so F-Droid was not triggered. The latest update got picked up and is available on F-Droid:
https://f-droid.org/de/packages/de.devmil.paperlaunch/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants