Fix a crasher in SensorService

SensorService main thread wasn't java-enabled. however, in
some situations we end-up calling into the BatteryService from
that thread which causes a crash.

Change-Id: Iffba90e4c4b743dba84d62f1342001a9db31916d
This commit is contained in:
Mathias Agopian 2011-05-19 16:21:32 -07:00
parent b1c14906ba
commit e04a63b305

View File

@ -44,8 +44,7 @@ namespace android {
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
SensorService::SensorService() SensorService::SensorService()
: Thread(false), : mDump("android.permission.DUMP"),
mDump("android.permission.DUMP"),
mInitCheck(NO_INIT) mInitCheck(NO_INIT)
{ {
} }