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

Skip to content
Commit cd7db757 authored by Chandru S's avatar Chandru S
Browse files

Stop requesting focus to the input text field if authentication was successful

Right now, after successful authentication,
 1. onTextFieldFocusChanged is invoked with false
 2. This triggers the coroutine which sees that `inputEnabled && !hasFocus` is true
 3. isTextFieldFocusRequested is then set to true
 4. The LaunchedEffect(isTextFieldFocusRequested) runs and requests focus on the text field
 5. This repeats until the DisposableEffect and the view is disposed.

This is preventing the RemoteInputView in the notification from getting focus and showing inline reply input area

Test: atest PlatformScenarioTests:android.platform.test.scenario.sysui.notification.NotificationRemoteInput#remoteInputReply_lockscreenPasswordLockedLifetimeExtends -- --abi arm64-v8a
Bug: 368108228
Flag: com.android.systemui.compose_bouncer
Change-Id: I06e2e0d6609ff12be830e712e46ce7bce2e39b5b
parent 30c37da0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment