mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Fixing activity being referred after destroying.
This is perhaps not a leak, but it conflicts with how StrictMode activity leak detection works. Bug: 139137636 Change-Id: I1608e348d8b238142c42ed81ae125fd07ef6b673
This commit is contained in:
@@ -64,6 +64,7 @@ public class SimpleActivityRule<T extends Activity> implements TestRule {
|
||||
mBase.evaluate();
|
||||
} finally {
|
||||
app.unregisterActivityLifecycleCallbacks(this);
|
||||
mActivity = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user