[DO NOT MERGE] Ensure SensorManager is destroyed on Launcher activity destruction

cp of I96bf525fe3730e7bf6b4c1042c18ef96622248fd to solve leak.
Restricting automerge as the bug is already fixed on master, but the file has been converted to kotlin, so this cl can't be automatically patched there.


Fix: 217144034
Test: See other cl
Change-Id: Id81168475882e94fb81ea6c89388707e730da5f9
This commit is contained in:
Nicolo' Mazzucato
2022-02-03 15:04:45 +01:00
committed by Nicolò Mazzucato
parent 606dede844
commit 7eee970bd6

View File

@@ -111,6 +111,7 @@ public final class ScopedUnfoldTransitionProgressProvider implements
@Override
public void destroy() {
mSource.removeCallback(this);
mSource.destroy();
}
@Override