mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-09 09:30:10 +08:00
clean out the last used bitmap
Reviewed By: achen1 Differential Revision: D4828134 fbshipit-source-id: bf54f7c9f61016cc0735338f99de7b0378c1234b
This commit is contained in:
committed by
Facebook Github Bot
parent
40eb353487
commit
f8e583b2d0
@@ -100,6 +100,8 @@ public class ReactAppTestActivity extends FragmentActivity implements
|
||||
if (mReactInstanceManager != null) {
|
||||
mReactInstanceManager.destroy();
|
||||
}
|
||||
|
||||
mScreenshotingFrameLayout.clean();
|
||||
}
|
||||
|
||||
public void waitForDestroy(long timeoutMs) throws InterruptedException {
|
||||
@@ -129,6 +131,7 @@ public class ReactAppTestActivity extends FragmentActivity implements
|
||||
}
|
||||
mReactRootView = new ReactRootView(this);
|
||||
mScreenshotingFrameLayout.removeAllViews();
|
||||
mScreenshotingFrameLayout.clean();
|
||||
mScreenshotingFrameLayout.addView(mReactRootView);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user