Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 08200af5 authored by Steve Elliott's avatar Steve Elliott
Browse files

[flexiglass] Introduce rememberSession {} API

This API allows for composables to associate a `remember` with a session
object, so that the state is maintained even when the composable exits
the composition.

For flexiglass, this is useful because it allows state to be preserved
across scenes; this allows for notification scroll position to be
preserved after going to-then-from Bouncer, for example.

Flag: ACONFIG com.android.systemui.scene_container DEVELOPMENT
Test: (with follow-up CL)
  1. Open Shade
  2. Scroll notifications
  3. Go to Bouncer
  4. Return to Shade, observe scroll state preserved

Change-Id: I37ed03d0dd95d6e01d064a693a46f73cebb2ff0b
parent 5044cdfd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment