Skip to content

Commit

Permalink
fix an issue for getting orientation from "dumpsys input" caused by p…
Browse files Browse the repository at this point in the history
…ossible attribute name change.

PiperOrigin-RevId: 621635054
  • Loading branch information
DeepMind authored and copybara-github committed Apr 3, 2024
1 parent 0ad20a3 commit d4eaae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android_env/components/adb_call_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def _get_orientation(
if physical_width:
skip_next = int(physical_width.group(1)) < 0

surface_orientation = re.match(r'\s+SurfaceOrientation:\s+(\d)', line)
surface_orientation = re.match(r'\s+InputDeviceOrientation:\s+(\d)', line)
if surface_orientation is not None:
if skip_next:
continue
Expand Down

0 comments on commit d4eaae0

Please sign in to comment.