mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 00:36:49 +00:00
Fixing ViewCaptureRule not unregistered if activity is destroyed
Bug: 291638593 Test: Presubmit Flag: N/A Change-Id: I86daf9fac210340b037d376d882ac5872c596ae4
This commit is contained in:
@@ -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