From f53128d8d869b7e68c9e0fdf9686b730dcd0c9b1 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 7 Jul 2020 08:10:35 +0200 Subject: [PATCH] power-libperfmgr: Fix dt2w after boot Change-Id: Ia6172d2f1a54900b8859eef55f07d37a6eab8487 --- hidl/power-libperfmgr/Power.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hidl/power-libperfmgr/Power.cpp b/hidl/power-libperfmgr/Power.cpp index 08c0a748..b26c74b1 100644 --- a/hidl/power-libperfmgr/Power.cpp +++ b/hidl/power-libperfmgr/Power.cpp @@ -58,6 +58,7 @@ Power::Power() mSustainedPerfModeOn(false), mCameraStreamingMode(false), mReady(false), + mDoubleTapEnabled(false), mNumPerfProfiles(0), mCurrentPerfProfile(PowerProfile::BALANCED) { mInitThread = std::thread([this]() { @@ -120,7 +121,6 @@ Power::Power() setProfile(PowerProfile::HIGH_PERFORMANCE); mCurrentPerfProfile = PowerProfile::HIGH_PERFORMANCE; } - mDoubleTapEnabled = false; // Now start to take powerhint mReady.store(true);