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

Commit 75cb4640 authored by Jorge Gil's avatar Jorge Gil
Browse files

Desks: Default DesktopWallpaperActivity focusability to false

This is a follow up to Idc7ac2c374bee72bb54bd7b3a5daca915262af25.

When the activity is created for the first time, setting the focus to
true resulted in the wallpaper being touchable behind a desktop app even
though it should've been made unfocusable by a call to
onTopResumedActivityChanged. To work around this lifecycle bug, set the
focus to |false| by default. It should in theory result in a reversed
bug if entering desktop through an empty desk, but
onTopResumedActivityChanged does call back in that case.

Flag: com.android.window.flags.enable_multiple_desktops_backend
Fix: 416700931
Test: reboot, open fullscreen task, enter desktop using handle menu -
verify the wallpaper isn't touchable
Test: reboot, open fullscreen task, swipe up to overview, create empty
desk, enter empty desk - verify there's no ANR on keyboard events

Change-Id: I039abd5051b03ab17f3468434cf77c364ced403f
parent b5aff7b0
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