allan.conda
04/04/2021, 8:47 AMallan.conda
04/04/2021, 8:48 AMallan.conda
04/04/2021, 8:48 AMjava.lang.IllegalStateException: You can consumeRestoredStateForKey only after super.onCreate of corresponding component
at androidx.savedstate.SavedStateRegistry.consumeRestoredStateForKey(SavedStateRegistry.java:77)
Mark Murphy
04/04/2021, 11:05 AMallan.conda
04/04/2021, 11:52 AMMark Murphy
04/04/2021, 11:55 AMallan.conda
04/05/2021, 2:40 PMMark Murphy
04/06/2021, 12:11 PMThe Box is taking all the touches however so I can’t touch the view behind itI don't think that is a Compose issue. Do you have a sample app working outside of Compose that is doing what you want?
ComposeView is final so I can’t overrideAFAIK, that has not been relevant since Android 4.0. AFAIK, you need to look at window flags to provide to the window, such asto ignore touchesdispatchTouchEvent
FLAG_NOT_TOUCHABLE
or perhaps FLAG_NOT_TOUCH_MODAL
. And, this is not tied to Compose. I recommend that you get a sample working first without Compose UI, then (and only then) adapt it to Compose.allan.conda
04/06/2021, 12:19 PMFLAG_NOT_TOUCHABLE
won’t let me touch my overlay button. FLAG_NOT_TOUCH_MODAL
is the closest that could work but I cannot move around my compose button without having a fillMaxSize() parent where it could move around.
You’re right, I should try to make this work without compose… There’s a bunch of apps that were able to achieve this though (without using the new Bubble API)handstandsam
04/08/2021, 11:29 AMallan.conda
04/23/2021, 5:49 PM