Fixing ViewCaptureRule not unregistered if activity is destroyed
Bug: 291638593 Test: Presubmit Flag: N/A Change-Id: I86daf9fac210340b037d376d882ac5872c596ae4
This commit is contained in:
1 parent
6779101b26
commit
bb50f3cd8e
3 files changed
+3
-13
No files matched your search
@@ -201,8 +201,7 @@ public abstract class AbstractLauncherUiTest {
|
||||
}
|
||||
|
||||
protected TestRule getRulesInsideActivityMonitor() {
|
||||
final ViewCaptureRule viewCaptureRule = new ViewCaptureRule(
|
||||
Launcher.ACTIVITY_TRACKER::getCreatedActivity);
|
||||
final ViewCaptureRule viewCaptureRule = new ViewCaptureRule();
|
||||
final RuleChain inner = RuleChain
|
||||
.outerRule(new PortraitLandscapeRunner(this))
|
||||
.around(new FailureWatcher(mLauncher, viewCaptureRule::getViewCaptureData))
|
||||
|
||||
Reference in new issue
Block a user