whyred: Add remapping table for display modes

* Map the values returned from the backend to ones we
   understand.

Change-Id: Iece11f4285ee01bf0c17dcbcb02108b9338193f6
This commit is contained in:
dianlujitao 2018-01-28 20:30:05 +08:00 committed by Sebastiano Barezzi
parent a683a613a0
commit be006a64a1

View file

@ -16,4 +16,18 @@
<bool name="config_haveHigherAspectRatioScreen">true</bool> <bool name="config_haveHigherAspectRatioScreen">true</bool>
<bool name="config_defaultCABC">false</bool> <bool name="config_defaultCABC">false</bool>
<!-- Display mode remapping table.
If the mode names returned by the backend do not match
the predefined and translated strings in the Settings
app, they can be remapped here. The format is
"oldname:newname", one per entry. -->
<string-array name="config_displayModeMappings" translatable="false">
<item>A_Standard:standard</item>
<item>B_Warm mode:reading</item>
<item>D_Cold mode:dynamic</item>
</string-array>
<!-- Should we filter any display modes which are unmapped? -->
<bool name="config_filterDisplayModes">true</bool>
</resources> </resources>