diff options
author | Saeid Farivar Asanjan <farivar@google.com> | 2021-08-20 22:31:59 +0000 |
---|---|---|
committer | Saeid Farivar Asanjan <farivar@google.com> | 2021-08-20 23:19:45 +0000 |
commit | f237f2ef30b20aa0b50c93ed87060d0cfffb04c8 (patch) | |
tree | 2186138e70303dcddac952065ea20a3e3e2f6b53 | |
parent | 01091850d9e99ffabcd8091c3dc15473adc47303 (diff) | |
download | tests-f237f2ef30b20aa0b50c93ed87060d0cfffb04c8.tar.gz |
Fix a crash on non car-ui Activity
We're avoiding injecting car-ui LayoutInflaterFactory when the launching
Activity is not using Theme.CarUi.
A workaround for these cases if they're intentionally trying to use
car-ui components on a non car-ui Activity is adding the following attr
to their theme.
<item name="carUiActivity">true</item>
Bug: 196567855
Test: Manually
Change-Id: I0256a2f5f8f9dc9b01101f0013eeec3f6506ac2d
-rw-r--r-- | RotaryPlayground/res/values/themes.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/RotaryPlayground/res/values/themes.xml b/RotaryPlayground/res/values/themes.xml index 02a0be9..69bfc4b 100644 --- a/RotaryPlayground/res/values/themes.xml +++ b/RotaryPlayground/res/values/themes.xml @@ -17,6 +17,7 @@ <resources> <style name="Theme.App" parent="android:Theme.DeviceDefault"> <item name="android:buttonStyle">@style/ButtonStyle</item> + <item name="carUiActivity">true</item> </style> <style name="ButtonStyle" parent="android:Widget.Button"> |