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

Commit 2e9eba8a authored by Hiroki Sato's avatar Hiroki Sato
Browse files

fix(magnify_ime): magnifies navBar when mouse or keyboard connected

Magnifying the nav bar is disabled in the previous commit [1].
This change adds back the magnification behavior of TYPE_NAVIGATION_BAR
but only when there's an active mouse or keyboard.

When a mouse or a keyboard is connected, we can expect that the user is
primarily using these devices to interact, instead of touch, thus,
- We don't need to keep showing 3 button bar at the same position of the
  screen.
- Instread, we want to magnify the entire screen to make sure all content
  user interacts, especially a task bar in large screen, are magnified.

[1] Icd42a530315717473cf93706aee625993821122e

Bug: 418892460
Test: WindowStateTests
Test: manually, connect / disconnect a mouse and a keyboard, toggle "magnify keyboard"
Flag: com.android.server.accessibility.enable_magnification_magnify_nav_bar_and_ime

Change-Id: I6db97a1f6e87a03359fcabb658b18932d3e899e1
parent 56f93335
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