This commit is contained in:
Len Chan 2019-03-31 20:28:00 +08:00
parent 73143f3236
commit f3eac9967a
1 changed files with 9 additions and 2 deletions

View File

@ -553,13 +553,20 @@ public class MediaActivity extends BaseActivity implements OnDownloadInterface {
}
}
@Override
protected void onPostResume() {
super.onPostResume();
FullScreencall(false);
}
public void FullScreencall(Boolean shouldFullscreen) {
if(Build.VERSION.SDK_INT < 19) {
View v = this.getWindow().getDecorView();
if(shouldFullscreen){
v.setSystemUiVisibility(View.VISIBLE);
}else {
v.setSystemUiVisibility(View.GONE);
}else {
v.setSystemUiVisibility(View.VISIBLE);
}
} else {
View decorView = getWindow().getDecorView();