예제 #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            var style = iApp.Instance == null ? new Style() : iApp.Instance.Style;

            UpdateHeader(style.HeaderColor);
            base.OnCreate(savedInstanceState);
            ActionBar?.SetHomeButtonEnabled(true);
            var or = Resources.Configuration.Orientation;

            if (or != CurrentOrientation)
            {
                CurrentOrientation = or;
                DroidFactory.OrientationChanged(CurrentOrientation == Orientation.Portrait ? iApp.Orientation.Portrait : iApp.Orientation.LandscapeLeft);
            }
            if (Alert.Instance != null)
            {
                Alert.Instance.Show();
            }
        }