commit | d11bade4e5d7b7818090d775f0bb4dea9d719206 | [log] [tgz] |
---|---|---|
author | Ady Abraham <adyabr@google.com> | Mon Aug 01 16:18:03 2022 -0700 |
committer | Ady Abraham <adyabr@google.com> | Mon Aug 01 16:23:25 2022 -0700 |
tree | fc49aea275d69b819644224dea38d39a1802d1a0 | |
parent | c525efb611803c572e2f1154655e1e8fcdfeef30 [diff] [blame] |
SF: build with ANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION Change-Id: I347b2cf57f1df426d11d07a84075419597d4a442 Test: presubmit
diff --git a/services/surfaceflinger/TunnelModeEnabledReporter.cpp b/services/surfaceflinger/TunnelModeEnabledReporter.cpp index 4497caf..bc9b870 100644 --- a/services/surfaceflinger/TunnelModeEnabledReporter.cpp +++ b/services/surfaceflinger/TunnelModeEnabledReporter.cpp
@@ -59,7 +59,7 @@ void TunnelModeEnabledReporter::addListener(const sp<gui::ITunnelModeEnabledListener>& listener) { sp<IBinder> asBinder = IInterface::asBinder(listener); - asBinder->linkToDeath(this); + asBinder->linkToDeath(sp<DeathRecipient>::fromExisting(this)); bool tunnelModeEnabled = false; { std::scoped_lock lock(mMutex);