power-libperfmgr: Fix dt2w after boot
authorAndreas Schneider <asn@cryptomilk.org>
Tue, 7 Jul 2020 06:10:35 +0000 (08:10 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 7 Jul 2020 06:31:55 +0000 (08:31 +0200)
Change-Id: Ia6172d2f1a54900b8859eef55f07d37a6eab8487

hidl/power-libperfmgr/Power.cpp

index 08c0a7480eef0fd8ccf2799909c971fc6af912cf..b26c74b187f71167ac2883d44e6cf87a7d807a13 100644 (file)
@@ -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);