summaryrefslogtreecommitdiffstats
path: root/services/sensorservice
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-05-19 16:21:32 -0700
committerMathias Agopian <mathias@google.com>2011-05-19 16:21:32 -0700
commit057f625cd9a1c0d1b1e7a5449fccd92de30c70ea (patch)
treea24dc23d5fe062ad2bb186c93ccb0e07f54f8a60 /services/sensorservice
parent14a2935809e73a9d824888dc837f2f017100fd26 (diff)
downloadframeworks_base-057f625cd9a1c0d1b1e7a5449fccd92de30c70ea.zip
frameworks_base-057f625cd9a1c0d1b1e7a5449fccd92de30c70ea.tar.gz
frameworks_base-057f625cd9a1c0d1b1e7a5449fccd92de30c70ea.tar.bz2
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
Diffstat (limited to 'services/sensorservice')
-rw-r--r--services/sensorservice/SensorService.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/sensorservice/SensorService.cpp b/services/sensorservice/SensorService.cpp
index ce1ab3d..c5e69ff 100644
--- a/services/sensorservice/SensorService.cpp
+++ b/services/sensorservice/SensorService.cpp
@@ -44,8 +44,7 @@ namespace android {
// ---------------------------------------------------------------------------
SensorService::SensorService()
- : Thread(false),
- mDump("android.permission.DUMP"),
+ : mDump("android.permission.DUMP"),
mInitCheck(NO_INIT)
{
}