public static void VerifyInBackground(bool windowFocusChangedBeforeOnPause)
 {
     if (!windowFocusChangedBeforeOnPause && !UserRequestedStickyBackground)
     {
         MainPlaybackSticky.ServiceWebView.ClearWebViewMinimizedState();
         foreach (var webView in PlaystateManagement.WebViewIdDictionary)
         {
             webView.Value.LoadUrl(JavascriptCommands.GetInjectable(JavascriptCommands.CallBackInjection.IsPlayingCallbackSimpleWithBuffer));
             MainPlaybackSticky.ServiceWebView.TotalWebViewsMovingIntoBackground++;
         }
     }
 }
 public override void OnConfigurationChanged(Configuration newConfig)
 {
     base.OnConfigurationChanged(newConfig);
     if (newConfig.Orientation == Orientation.Landscape)
     {
         NavigationView.Visibility = ViewStates.Gone;
         try {
             if (CommonFrag.GetFragmentById(-1, null, ViewPager.CurrentItem).Wv.Url.StartsWith(@"https://www.bitchute.com/video/") &&
                 CommonFrag.GetFragmentById(-1, null, ViewPager.CurrentItem).Wv.RootUrl != Https.URLs._settings &&
                 CommonFrag.GetFragmentById(-1, null, ViewPager.CurrentItem).Wv.RootUrl != Https.URLs._myChannel)
             {
                 CommonFrag.GetFragmentById(-1, null, ViewPager.CurrentItem)
                 .Wv.LoadUrl(JavascriptCommands.GetInjectable(JavascriptCommands.JsHideTitle +
                                                              JavascriptCommands.JsHideWatchTab + JavascriptCommands.JsHideTooltips + JavascriptCommands.JsHidePageBar));
             }
             else if (CommonFrag.GetFragmentById(-1, null, ViewPager.CurrentItem).Wv.Url.StartsWith(@"https://www.bitchute.com/channel/") ||
                      CommonFrag.GetFragmentById(-1, null, ViewPager.CurrentItem).Wv.RootUrl == Https.URLs._myChannel ||
                      CommonFrag.GetFragmentById(-1, null, ViewPager.CurrentItem).Wv.RootUrl == Https.URLs._settings ||
                      CommonFrag.GetFragmentById(-1, null, ViewPager.CurrentItem).Wv.Url == Https.URLs._homepage)
             {
                 CommonFrag.GetFragmentById(-1, null, ViewPager.CurrentItem)
                 .Wv.LoadUrl(JavascriptCommands.GetInjectable(
                                 JavascriptCommands.JsHideTitle + JavascriptCommands.JsHideTooltips));
             }
             else
             {
                 CommonFrag.GetFragmentById(-1, null, ViewPager.CurrentItem)
                 .Wv.LoadUrl(JavascriptCommands.GetInjectable(
                                 JavascriptCommands.JsShowTitle + JavascriptCommands.JsHideTooltips + JavascriptCommands.JsHidePageBar));
             }
             AppState.Display.Horizontal = true;
             _window.ClearFlags(_winflagnotfullscreen);
             _window.AddFlags(_winflagfullscreen);
         } catch { }
     }
     else if (newConfig.Orientation == Orientation.Portrait)
     {
         if (CommonFrag.GetFragmentById(-1, null, ViewPager.CurrentItem).Wv.Url.Contains(@"https://www.bitchute.com/video/") &&
             CommonFrag.GetFragmentById(-1, null, ViewPager.CurrentItem).Wv.RootUrl != Https.URLs._settings &&
             CommonFrag.GetFragmentById(-1, null, ViewPager.CurrentItem).Wv.RootUrl != Https.URLs._myChannel)
         {
             CommonFrag.GetFragmentById(-1, null, ViewPager.CurrentItem)
             .Wv.LoadUrl(JavascriptCommands.GetInjectable(JavascriptCommands.JsShowTitle + JavascriptCommands.JsHideTooltips));
         }
         else if (CommonFrag.GetFragmentById(-1, null, ViewPager.CurrentItem).Wv.Url.StartsWith(@"https://www.bitchute.com/channel/") ||
                  CommonFrag.GetFragmentById(-1, null, ViewPager.CurrentItem).Wv.Url.StartsWith(@"https://www.bitchute.com/profile/") ||
                  CommonFrag.GetFragmentById(-1, null, ViewPager.CurrentItem).Wv.RootUrl == Https.URLs._myChannel ||
                  CommonFrag.GetFragmentById(-1, null, ViewPager.CurrentItem).Wv.RootUrl == Https.URLs._settings ||
                  CommonFrag.GetFragmentById(-1, null, ViewPager.CurrentItem).Wv.Url == Https.URLs._homepage)
         {
             CommonFrag.GetFragmentById(-1, null, ViewPager.CurrentItem)
             .Wv.LoadUrl(JavascriptCommands.GetInjectable(
                             JavascriptCommands.JsShowTitle + JavascriptCommands.JsShowWatchTab + JavascriptCommands.JsHideTooltips));
         }
         else
         {
             CommonFrag.GetFragmentById(-1, null, ViewPager.CurrentItem)
             .Wv.LoadUrl(JavascriptCommands.GetInjectable(
                             JavascriptCommands.JsShowTitle + JavascriptCommands.JsHideTooltips));
         }
         AppState.Display.Horizontal = false;
         _window.ClearFlags(_winflagfullscreen);
         _window.AddFlags(_winflagnotfullscreen);
         CustomOnTouch();
     }
     if (!AppSettings.HideHorizontalNavBar || newConfig.Orientation == Orientation.Portrait)
     {
         NavTimeout = false;
     }
 }