OSDN Git Service

Allow CryptKeeper dialogs to rotate on tablets
authorPaul Lawrence <paullawrence@google.com>
Tue, 22 Jul 2014 22:00:50 +0000 (15:00 -0700)
committerPaul Lawrence <paullawrence@google.com>
Wed, 23 Jul 2014 14:39:31 +0000 (14:39 +0000)
commit7ae20e3ce98543888cfccbef6b1254d060bc30ca
treee31d1650f7796cb3c6e00751921475290deedcf1
parent59c3da2367bad63efd71753b4d1ad88f2298ddc6
Allow CryptKeeper dialogs to rotate on tablets

Tablets may be used in docking stations thus need to support landscape mode.
Phones will not be, and having them rotate is both ugly and annoying.
Also this matches lock screen behavior.

The attribute screenOrientation is not themeable, so the only way of doing
this is programmatic.

Test for truth of bool which is only set for sw600dp devices and
clear the nosensor setting from the manifest if set.

Bug: 16405551
Change-Id: I5b3f945b89402e5aa39642c2c06e98f9ca1ce298
res/layout-land/crypt_keeper_password_entry.xml [deleted file]
res/layout-land/crypt_keeper_pattern_entry.xml [deleted file]
res/values-sw600dp/bools.xml
src/com/android/settings/CryptKeeper.java