Using StrictMode to detect activity leaks

Change-Id: I615f641897d57be0cd31be944796c6931ef9ab00
This commit is contained in:
vadimt
2020-02-25 14:41:01 -08:00
parent d71c3b185d
commit 1779a38290
4 changed files with 45 additions and 1 deletions

View File

@@ -35,6 +35,7 @@ import androidx.test.uiautomator.UiDevice;
import com.android.launcher3.tapl.LauncherInstrumentation;
import com.android.launcher3.tapl.TestHelpers;
import com.android.launcher3.ui.AbstractLauncherUiTest;
import com.android.launcher3.util.Wait;
import com.android.launcher3.util.rule.FailureWatcher;
import com.android.systemui.shared.system.QuickStepContract;
@@ -199,7 +200,7 @@ public class NavigationModeSwitchRule implements TestRule {
+ launcher.getNavigationModeMismatchError(),
() -> launcher.getNavigationModeMismatchError() == null,
60000 /* b/148422894 */, launcher);
AbstractLauncherUiTest.checkDetectedLeaks();
return true;
}