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) { public void FullScreencall(Boolean shouldFullscreen) {
if(Build.VERSION.SDK_INT < 19) { if(Build.VERSION.SDK_INT < 19) {
View v = this.getWindow().getDecorView(); View v = this.getWindow().getDecorView();
if(shouldFullscreen){ if(shouldFullscreen){
v.setSystemUiVisibility(View.VISIBLE);
}else {
v.setSystemUiVisibility(View.GONE); v.setSystemUiVisibility(View.GONE);
}else {
v.setSystemUiVisibility(View.VISIBLE);
} }
} else { } else {
View decorView = getWindow().getDecorView(); View decorView = getWindow().getDecorView();