Beispiel #1
0
        public bool ActivateTask(Task task)
        {
            // don't allow switching activites while we're animating.
            if (Animating == false)
            {
                Container.ActivateTask(task);

                // I don't think this call does anything, but getting this close to
                // shipping, i don't want to remove it.
                PopToRootViewController(false);

                // task activation should only close the springboard if our device isn't wide landscape
                if (SpringboardViewController.IsLandscapeWide( ) == false)
                {
                    RevealSpringboard(false);
                }

                return(true);
            }

            return(false);
        }