OSDN Git Service

BatteryService: fix logic errors
authorChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 23 Jul 2013 05:52:11 +0000 (13:52 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 25 Sep 2013 02:45:43 +0000 (10:45 +0800)
commitea991600bde1be63e31f0682996fcf01737535ae
treea7f9dd28ddc30e59cd52bc73a8b641011b7f2252
parent0943d12ce5f375835c857ab5aad2ddb852ce0dcf
BatteryService: fix logic errors

(!String8_instance) doesn't mean an empty string. The object is
implicitly casted to const char *. Therefore it just means
(!String8_instance.string()) which is always false.
services/jni/com_android_server_BatteryService.cpp