Skip to content

Commit

Permalink
提供onclick方法,供自动全屏使用
Browse files Browse the repository at this point in the history
  • Loading branch information
hss01248 committed Jan 26, 2022
1 parent b7f2c1b commit 554f29d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,14 @@ protected void onConfigurationChanged(Configuration newConfig) {
}*/
}


@Override
public void setOnClickListener(@Nullable OnClickListener l) {
if(jpgView != null){
jpgView.setOnClickListener(l);
}else if(gifView != null){
gifView.setOnClickListener(l);
}
}

private void loadUrl(String url) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public boolean onInterceptTouchEvent(MotionEvent ev) {
}
}


int preOrientation;
@Override
protected void onConfigurationChanged(Configuration newConfig) {
Expand Down

0 comments on commit 554f29d

Please sign in to comment.