From: Andreas Schneider Date: Tue, 7 Jul 2020 06:10:35 +0000 (+0200) Subject: power-libperfmgr: Fix dt2w after boot X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f53128d8d869b7e68c9e0fdf9686b730dcd0c9b1;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung.git power-libperfmgr: Fix dt2w after boot Change-Id: Ia6172d2f1a54900b8859eef55f07d37a6eab8487 --- diff --git a/hidl/power-libperfmgr/Power.cpp b/hidl/power-libperfmgr/Power.cpp index 08c0a74..b26c74b 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);