summaryrefslogtreecommitdiff
path: root/libs/utils/Unicode.cpp
diff options
context:
space:
mode:
author Tobias Haamel <haamel@google.com> 2010-02-09 23:09:17 +0100
committer Tobias Haamel <haamel@google.com> 2010-02-11 21:25:58 +0100
commit70fa84f6ab15936b265986c507cf00fd2cbf9db1 (patch)
treea70782e021c85bdd8eccc83b222eff40ae4b2fbc /libs/utils/Unicode.cpp
parent6ecdf9757703173153bb993de5dad30e5bd5afff (diff)
Introduce special UI modes for night and car usage.
The device mode is now called ui mode. Furthermore is the order of precedence for the resources now in such a way that the ui mode needs to be specified after the orientation and before the density. The ui mode can be set, like it is done for the locale, as follows: IActivityManager am = ActivityManagerNative.getDefault(); Configuration config = am.getConfiguration(); config.uiMode = Configuration.UI_MODE_TYPE_CAR | Configuration.UI_MODE_NIGHT_ANY; am.updateConfiguration(config); To allow users to disable the car mode and set the night mode the IUiModeManager interface is used. The automatic night mode switching will be added in a separate change.
Diffstat (limited to 'libs/utils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions