diff options
author | Lijuan Gao <lijuang@codeaurora.org> | 2014-12-03 13:36:51 +0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-10-26 16:09:10 -0700 |
commit | 9bc1f489d7a895c30e4e4050d139ee02bb71ef08 (patch) | |
tree | 0e0af3ff6f068d8d14e37585ed20bf0c84641384 /cmds | |
parent | f3d1bbb77f9f3dbe065d713721e0591ea3fa348f (diff) | |
download | frameworks_base-9bc1f489d7a895c30e4e4050d139ee02bb71ef08.zip frameworks_base-9bc1f489d7a895c30e4e4050d139ee02bb71ef08.tar.gz frameworks_base-9bc1f489d7a895c30e4e4050d139ee02bb71ef08.tar.bz2 |
bootanimation_main: Disable boot animation when device is triggered by alarm
When the phone is triggered by alarm, it's better to show the deskclock
directly instead of bootanimation as the new requirement from customers.
So disable bootanimation in such case.
Change-Id: Id8e92a492cc2281f1fe4c620fdaa8c293c4aa369
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/bootanimation/bootanimation_main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds/bootanimation/bootanimation_main.cpp b/cmds/bootanimation/bootanimation_main.cpp index 48a34e7..50e4b1f 100644 --- a/cmds/bootanimation/bootanimation_main.cpp +++ b/cmds/bootanimation/bootanimation_main.cpp @@ -38,8 +38,9 @@ int main() property_get("debug.sf.nobootanimation", value, "0"); int noBootAnimation = atoi(value); ALOGI_IF(noBootAnimation, "boot animation disabled"); - if (!noBootAnimation) { + property_get("ro.alarm_boot", value, "false"); + if (!noBootAnimation && strcmp(value, "true")) { sp<ProcessState> proc(ProcessState::self()); ProcessState::self()->startThreadPool(); |