launcher3: Amend strict mode policy to account for activity leaks.

detectActivityLeaks() will identify any cases where subclasses
  of Activity are leaking.

Bug: 392635961
Test: EXEMPT debug code
Flag: EXEMPT debug code
Change-Id: I28057738a7bb8951a39152f4a4e6954bd2b97706
This commit is contained in:
Adnan Begovic committed 2025-02-04 14:08:37 -08:00
1 parent 73ce362894
commit 3d29c0a062
1 file changed
+1
+1
View File
@@ -469,6 +469,7 @@ public class Launcher extends StatefulActivity<LauncherState>
StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
.detectLeakedSqlLiteObjects()
.detectLeakedClosableObjects()
.detectActivityLeaks()
.penaltyLog()
.penaltyDeath()
.build());