summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Lee <rgl@google.com>2020-06-06 15:43:49 +0000
committerRobin Lee <rgl@google.com>2020-06-08 09:56:20 +0000
commit45ce81b45fcb079765b205fccb32b178f753045e (patch)
treef1ccde5ee9636f2a916f6d9b8e9e7af0ef037dc5
parentacec33ce7b18aeb42dd59caf31830360a49327e2 (diff)
downloadatv-45ce81b45fcb079765b205fccb32b178f753045e.tar.gz
Lock ATV UI mode to prevent Car Mode tests from running + failing
ATV will refuse to go into any other UI mode than TV UI mode. In a future version of Android we can just rely on this flag instead- for now we add the flag to make tests pass, but the actual behaviour doesn't change because it was already correct. Change-Id: I7aa546ed6e93e5404668a2883dfeeb936bc0ab1e Test: atest android.app.cts.UiModeManagerTest Fix: 158358991
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index 19f31de..d63eaf3 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -37,6 +37,10 @@
Any other values will have surprising consequences. -->
<integer name="config_defaultUiModeType">4</integer>
+ <!-- Control whether to lock UI mode to what is selected from config_defaultUiModeType.
+ Once UI mode is locked, applications cannot change it anymore. -->
+ <bool name="config_lockUiMode">true</bool>
+
<!-- default device has recents property -->
<bool name="config_hasRecents">false</bool>