diff options
author | David 'Digit' Turner <digit@android.com> | 2011-03-22 16:07:01 +0100 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2011-03-22 16:11:08 +0100 |
commit | b64325d15d9e767c652491414c95f4fc148b0211 (patch) | |
tree | 4ea0f1174402e60adb5ec27615ca7d9af5118a28 /android/main.c | |
parent | 13705e8b2182da3e2d13bea5d074db77f4a92ab1 (diff) | |
download | external_qemu-b64325d15d9e767c652491414c95f4fc148b0211.zip external_qemu-b64325d15d9e767c652491414c95f4fc148b0211.tar.gz external_qemu-b64325d15d9e767c652491414c95f4fc148b0211.tar.bz2 |
Set hw.keyboard.lid default value to false for API level >= 12
This patch modifies the emulator to extract the target API level for
the AVD or the current platform release, and use it to set the
default value of hw.keyboard.lid.
This will *not* affect any existing AVD/platform that sets the value
explicitely in its config.ini (for AVDs) or hardware.ini (for platform
builds).
The change is beneficial for platform builds targetting API level >= 12,
because the input framework changed its the window orientation behaviour
depending on the availability of a hardware lid.
In short, this allows platform builds to be correctly oriented, even
if they don't provide a custom hardware.ini.
Fix for bug 4128604
Change-Id: I195135aae6f3c4cc11d2f01e1293f3cd6cad2f58
Diffstat (limited to 'android/main.c')
-rw-r--r-- | android/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/main.c b/android/main.c index 7b6ea03..0682497 100644 --- a/android/main.c +++ b/android/main.c @@ -305,7 +305,7 @@ int main(int argc, char **argv) /* Read hardware configuration */ hw = android_hw; - if (avdInfo_getHwConfig(avd, hw) < 0) { + if (avdInfo_initHwConfig(avd, hw) < 0) { derror("could not read hardware configuration ?"); exit(1); } |