summaryrefslogtreecommitdiff
path: root/wifi/java/src
diff options
context:
space:
mode:
author William Xiao <wxyz@google.com> 2023-03-21 17:34:21 -0700
committer William Xiao <wxyz@google.com> 2023-03-23 15:51:30 -0700
commitd631b0100a0c93d02c21368e8ea0edfcd904842b (patch)
tree17c2998aa6f5b8947d725f6e6252b7b5496ca048 /wifi/java/src
parent13f25d786fe6823426b3360325a27576c4b0c9a5 (diff)
Implement flag to not relaunch on dock config change for apps without
-desk resources Activities are relaunched when they encounter an unhandled configuration change. When a device is docked, this is surfaced to activities as a uiMode change to UI_MODE_TYPE_DESK. Some apps don't handle this configuration change by default, leading to a poor user experience, such as video playback stopping when docking. This change adds a flag that modifies this behavior and does not relaunch activities if the device is docked or undocked and the app does not have desk resources. Apps that have desk resources likely already either handle the uiMode configuration update or expect to be relaunched, so we want to preserve the default behavior for them. This flag is turned off by default. Bug: 266924897 Test: atest WmTests:ActivityRecordTests Change-Id: Ib9eeb251f803e41ff8fd0ed56f1ea8d52e67ba81
Diffstat (limited to 'wifi/java/src')
0 files changed, 0 insertions, 0 deletions