wordpress-mobile / AztecEditor-Android

A reusable native Android rich text editor component.
Mozilla Public License 2.0
675 stars 112 forks source link

getLocationOnScreen() vs. getLocationInWindow() #1011

Open marcardar opened 1 year ago

marcardar commented 1 year ago

https://github.com/wordpress-mobile/AztecEditor-Android/blob/fdcf6ce096db614a8c94e08570a5413106f58b9f/aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt#L612

I was just checking targetSdkVersion requirements and they mention potentially using getLocationInWindow() instead of getLocationOnScreen() because of the new advanced window management.

I'm not too familiar with this, but maybe it's worth checking which method should be used in this particular scenario.