Skip to content

Commit 72aabc5

Browse files
authored
requestApplyInsets on ui flags changed
1 parent a92ec67 commit 72aabc5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

android/src/main/java/com/stellarscript/system/ui/flags/SystemUiFlagsService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.stellarscript.system.ui.flags;
22

33
import android.app.Activity;
4+
import android.support.v4.view.ViewCompat;
45

56
public final class SystemUiFlagsService {
67

@@ -9,6 +10,7 @@ private SystemUiFlagsService() {
910

1011
public static void setSystemUiFlags(final Activity activity, final int flags) {
1112
activity.getWindow().getDecorView().setSystemUiVisibility(flags);
13+
ViewCompat.requestApplyInsets(activity.getWindow().getDecorView());
1214
}
1315

1416
public static int getSystemUiFlags(final Activity activity) {

0 commit comments

Comments
 (0)