am 5bfef1ba: Merge "BatteryService: Set bool to true if sysfs entry is not 0"
Merge commit '5bfef1ba0501e237b3a0fa1abe98e5348d8c5b04' into gingerbread-plus-aosp * commit '5bfef1ba0501e237b3a0fa1abe98e5348d8c5b04': BatteryService: Set bool to true if sysfs entry is not 0
This commit is contained in:
committed by
Android Git Automerger
commit
c20f205d10
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user