Exemplo n.º 1
0
        public override void OnResume()
        {
            base.OnResume();

            SpringboardParent.ModalFragmentOpened(this);

            StartingOrientation = Activity.RequestedOrientation;

            // freeze the orientation
            if (MainActivity.IsLandscapeWide( ))
            {
                Activity.RequestedOrientation = Android.Content.PM.ScreenOrientation.Landscape;
            }
            else
            {
                Activity.RequestedOrientation = Android.Content.PM.ScreenOrientation.Portrait;
            }
        }
Exemplo n.º 2
0
        public override void OnResume()
        {
            base.OnResume();

            SpringboardParent.ModalFragmentOpened( this );

            StartingOrientation = Activity.RequestedOrientation;

            // freeze the orientation
            if ( MainActivity.IsLandscapeWide( ) )
            {
                Activity.RequestedOrientation = Android.Content.PM.ScreenOrientation.Landscape;
            }
            else
            {
                Activity.RequestedOrientation = Android.Content.PM.ScreenOrientation.Portrait;
            }
        }
 public override void OnShowCustomView(View view, Android.Content.PM.ScreenOrientation requestedOrientation, WebChromeClient.ICustomViewCallback callback)
 {
     OnShowCustomView(view, callback);
 }