mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Don't fade in media preview controls if hidden.
This commit is contained in:
@@ -143,14 +143,18 @@ public final class FullscreenHelper {
|
||||
}
|
||||
|
||||
public void toggleUiVisibility() {
|
||||
int systemUiVisibility = activity.getWindow().getDecorView().getSystemUiVisibility();
|
||||
if ((systemUiVisibility & View.SYSTEM_UI_FLAG_FULLSCREEN) != 0) {
|
||||
if (isSystemUiVisible()) {
|
||||
showSystemUI();
|
||||
} else {
|
||||
hideSystemUI();
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isSystemUiVisible() {
|
||||
int systemUiVisibility = activity.getWindow().getDecorView().getSystemUiVisibility();
|
||||
return (systemUiVisibility & View.SYSTEM_UI_FLAG_FULLSCREEN) != 0;
|
||||
}
|
||||
|
||||
public void hideSystemUI() {
|
||||
activity.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_IMMERSIVE |
|
||||
View.SYSTEM_UI_FLAG_LAYOUT_STABLE |
|
||||
|
||||
Reference in New Issue
Block a user