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

Commit e04a63b3 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

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
parent b1c14906
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -44,8 +44,7 @@ namespace android {
// ---------------------------------------------------------------------------

SensorService::SensorService()
    : Thread(false),
      mDump("android.permission.DUMP"),
    : mDump("android.permission.DUMP"),
      mInitCheck(NO_INIT)
{
}