Skip to content

Commit

Permalink
Reset Jzvd LayoutParams
Browse files Browse the repository at this point in the history
  • Loading branch information
Liberations committed May 27, 2020
1 parent 834b627 commit b2d4ea6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions library/src/main/java/cn/jzvd/Jzvd.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b2d4ea6

Please sign in to comment.