@@ -434,6 +434,14 @@ public int getWindowHeight() {
434434 return rect .height ();
435435 }
436436
437+ public boolean isInsetBasedOnResize () {
438+ return Build .VERSION .SDK_INT >= Build .VERSION_CODES .BAKLAVA ;
439+ }
440+
441+ public boolean isPredictiveBack () {
442+ return Build .VERSION .SDK_INT >= Build .VERSION_CODES .BAKLAVA ;
443+ }
444+
437445 /**
438446 * Check if traditional 3-button navigation is enabled
439447 * @return true if 3-button navigation is active
@@ -449,14 +457,6 @@ public boolean isThreeButtonNavigationEnabled() {
449457 return false ;
450458 }
451459
452- public boolean isInsetBasedOnResize () {
453- return Build .VERSION .SDK_INT >= Build .VERSION_CODES .BAKLAVA ;
454- }
455-
456- public boolean isPredictiveBack () {
457- return Build .VERSION .SDK_INT >= Build .VERSION_CODES .BAKLAVA ;
458- }
459-
460460 public boolean loadModules () {
461461 Log .i (TAG , "loadModules: " + getActivity ());
462462 boolean result ;
@@ -589,6 +589,17 @@ public String request(String endPoint, String data, String apiKey) throws IOExce
589589 return connection .invoke ();
590590 }
591591
592+ public boolean requestApplyInsets () {
593+ final View view = getWindow ().getDecorView ();
594+ view .postDelayed (new Runnable () {
595+ @ Override
596+ public void run () {
597+ ViewCompat .requestApplyInsets (view );
598+ }
599+ }, 100 );
600+ return true ;
601+ }
602+
592603 public boolean requestLocationUpdates () {
593604 final LocationManager locationService = (LocationManager ) getSystemService (Context .LOCATION_SERVICE );
594605 boolean result = false ;
0 commit comments