curtains
curtains copied to clipboard
Lift the curtain on Android Windows!
``` java.lang.IllegalStateException: Cannot call removeOnDrawListener inside of onDraw at android.view.ViewTreeObserver.removeOnDrawListener(ViewTreeObserver.java:704) at curtains.internal.NextDrawListener$onDraw$1.run(NextDrawListener.kt:27) at android.os.Handler.handleCallback(Handler.java:790) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6523) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:857) ```
`curtains.WindowsKt#getWrappedCallback` currently supports unwrapping jetpack and curtains callbacks. We could add support for the AOSP WindowCallbackWrapper as well.
I noticed this issue when testing an app that uses fragments to set the toolbar. > MyFragment.kt ``` override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) // This causes...
Publishing to Maven Central will require that you migrate to using the Central Portal soon. See (internally) http://go/central-portal-migration-com-squareup for context. Here is an example migration: https://github.com/square/okio/pull/1621. Do not perform the...