Exemple #1
0
        protected override void OnDetachedFromWindow()
        {
            base.OnDetachedFromWindow();

            /**
             * If we're being detached from the window without the mWasDismissed flag then we weren't purposefully dismissed
             * Probably due to an orientation change or user backed out of activity.
             * Ensure we reset the flag so the showcase display again.
             */
            if (!_wasDismissed && _singleUse)
            {
                _prefsManager?.ResetShowcase();
            }



            NotifyOnDismissed();
        }
Exemple #2
0
 /**
  * Static helper method for resetting single use flag
  *
  * @param context
  * @param showcaseID
  */
 public static void ResetSingleUse(Context context, string showcaseId)
 => PrefsManager.ResetShowcase(context, showcaseId);