diff --git a/library/src/main/java/cn/jzvd/Jzvd.java b/library/src/main/java/cn/jzvd/Jzvd.java index b75a1e9a..f1067b7b 100644 --- a/library/src/main/java/cn/jzvd/Jzvd.java +++ b/library/src/main/java/cn/jzvd/Jzvd.java @@ -671,11 +671,9 @@ public void gotoNormalCompletion() { ViewGroup vg = (ViewGroup) (JZUtils.scanForActivity(jzvdContext)).getWindow().getDecorView(); vg.removeView(this); textureViewContainer.removeView(textureView); - CONTAINER_LIST.getLast().removeAllViews(); - CONTAINER_LIST.getLast().addView(this, new FrameLayout.LayoutParams( - ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); + CONTAINER_LIST.getLast().removeViewAt(blockIndex);//remove block + CONTAINER_LIST.getLast().addView(this, blockIndex, blockLayoutParams); CONTAINER_LIST.pop(); - setScreenNormal(); JZUtils.showStatusBar(jzvdContext); JZUtils.setRequestedOrientation(jzvdContext, NORMAL_ORIENTATION);