summaryrefslogtreecommitdiff
path: root/libs/hwui/ProgramCache.cpp
diff options
context:
space:
mode:
author John Spurlock <jspurlock@google.com> 2013-12-19 16:39:23 -0500
committer John Spurlock <jspurlock@google.com> 2013-12-19 17:47:20 -0500
commit8ab172e8d9c2e926921bb52838c2322142fb3c65 (patch)
tree4162d6d5f54db56b62ffadf62656de31ae0096cf /libs/hwui/ProgramCache.cpp
parent65048bdce7a14d891d32c39369b3d81dd6916d6f (diff)
Add rotation-lock to Quick Settings on phones.
Make the rotation-lock QS tile available for display on phones. Devices < sw600dp are only allowed to lock rotation to their natural orientation (i.e. portrait on most phones), so tweak the QS tile label to make this clear. e.g. "Locked to Portrait" instead of "Rotation Locked" on portrait phones. Simplify RotationLockController now that the sw600 check is no longer hardcoded in RotationPolicy. Remove redundant sw600dp check in SystemUI, everything driven from the RotationPolicy helper, though SystemUI can still choose not to display the tile at all with a resource config. Clean up some of the docs in RotationPolicy to make clear the subtle distinction between the two ways of locking rotation: - From Accessibility (locks to natural orientation on all devices) - From System UI (locks to natural < sw600dp, else current rotation) Bug:11062710 Change-Id: I5caa4485c9501315da9fed964d6667d3012b43cb
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions