Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c20f205d authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by Android Git Automerger
Browse files

am 5bfef1ba: Merge "BatteryService: Set bool to true if sysfs entry is not 0"

Merge commit '5bfef1ba' into gingerbread-plus-aosp

* commit '5bfef1ba':
  BatteryService: Set bool to true if sysfs entry is not 0
parents eceace47 5bfef1ba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
        }
    }