diff options
| author | 2010-10-20 16:35:17 -0700 | |
|---|---|---|
| committer | 2010-10-20 16:35:17 -0700 | |
| commit | 5bfef1ba0501e237b3a0fa1abe98e5348d8c5b04 (patch) | |
| tree | a6fe24a17f8be67a384457ed9fc9a339c813847c | |
| parent | 81925e665c1e25d04cbc10e7333e793416bdc98f (diff) | |
| parent | 49016d6cd74cd6c86fa625fe8702c474f955266e (diff) | |
Merge "BatteryService: Set bool to true if sysfs entry is not 0"
| -rw-r--r-- | services/jni/com_android_server_BatteryService.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/jni/com_android_server_BatteryService.cpp b/services/jni/com_android_server_BatteryService.cpp index 397a84ae1e13..d4513e934331 100644 --- a/services/jni/com_android_server_BatteryService.cpp +++ b/services/jni/com_android_server_BatteryService.cpp @@ -164,7 +164,7 @@ static void setBooleanField(JNIEnv* env, jobject obj, const char* path, jfieldID jboolean value = false; if (readFromFile(path, buf, SIZE) > 0) { - if (buf[0] == '1') { + if (buf[0] != '0') { value = true; } } |