Fixing ViewCaptureRule not unregistered if activity is destroyed

Bug: 291638593
Test: Presubmit
Flag: N/A
Change-Id: I86daf9fac210340b037d376d882ac5872c596ae4
This commit is contained in:
Sunny Goyal
2023-07-19 15:57:29 -07:00
parent 6779101b26
commit bb50f3cd8e
3 changed files with 3 additions and 13 deletions

View File

@@ -116,8 +116,7 @@ public class FallbackRecentsTest {
Utilities.enableRunningInTestHarnessForTests();
}
final ViewCaptureRule viewCaptureRule = new ViewCaptureRule(
RecentsActivity.ACTIVITY_TRACKER::getCreatedActivity);
final ViewCaptureRule viewCaptureRule = new ViewCaptureRule();
mOrderSensitiveRules = RuleChain
.outerRule(new SamplerRule())
.around(new NavigationModeSwitchRule(mLauncher))