From f3eac9967ac7c5d376235c7077eef575796a3d43 Mon Sep 17 00:00:00 2001 From: Len Chan Date: Sun, 31 Mar 2019 20:28:00 +0800 Subject: [PATCH] cleanup --- .../etalab/mastodon/activities/MediaActivity.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/activities/MediaActivity.java b/app/src/main/java/fr/gouv/etalab/mastodon/activities/MediaActivity.java index 3e5f35d91..ad76f7b3a 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/activities/MediaActivity.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/activities/MediaActivity.java @@ -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();