improve: change starting Activity to show floating window on record stop

This commit is contained in:
hyb1996
2017-08-04 18:36:41 +08:00
parent 37dc1966dc
commit 2ad0d6c269
6 changed files with 131 additions and 72 deletions

View File

@@ -298,15 +298,17 @@ public class ScriptRuntime {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
images.releaseScreenCapturer();
}
if (events != null)
events.recycle();
if (loopers != null)
loopers.quitAll();
if (mRootShell != null) {
mRootShell.exit();
mRootShell = null;
mRootShell.exitAndWaitFor();
}
mRootShell = null;
mShellSupplier = null;
if (events != null) {
events.recycle();
}
if (loopers != null) {
loopers.quitAll();
}
}
public Object getImages() {