Ejemplo n.º 1
0
 private void handleHideSkylight(boolean forceHide) {
   boolean isOpen = SkylightUtil.getIsHallOpen(mContext);
   if (!isOpen && !forceHide) {
     return;
   }
   mViewMediatorCallback.userActivity();
   // xfge add forceHide condition for CR01501015
   if (forceHide) destroyAcivityIfNeed();
   if (mSkylightHost != null) {
     mSkylightHost.hideSkylight();
     boolean isLockScreenDisabled = mLockPatternUtils.isLockScreenDisabled();
     boolean isSimLock = needsFullscreenBouncer();
     DebugLog.d(LOG_TAG, "handleHideSkylight  isLockScreenDisable: " + isLockScreenDisabled);
     if (isLockScreenDisabled && isOpen && !isSimLock) {
       unLockByOther(false);
     } else {
       mSkylightHost.setVisibility(View.GONE);
     }
     mIsSkylightShown = false;
     mViewMediatorCallback.adjustStatusBarLocked();
   }
   if (isShowingAndNotOccluded()) {
     startFingerIdentify();
   }
   beginStatics();
   refreshCacheScreenOn();
 }
Ejemplo n.º 2
0
  public void hide() {
    DebugLog.d(TAG, "hide");
    DataStatistics.getInstance().unlockScreenWhenHasNotification(mContext);
    destroyAcivityIfNeed();
    mKeyguardViewHost.hide();
    setSkylightHidden();

    finishStatistics();
    Wallpaper wallpaper = UIController.getInstance().getmCurrentWallpaper();
    WallpaperStatisticsPolicy.onWallpaperNotShown(wallpaper);
    updateNotifiOnkeyguard(false);
    releaseCache();
    mContainer.reset();
    UIController.getInstance().securityViewAlphaAnimationUpdating(1f);
    UIController.getInstance().dismissNetworkDialog();
    cancelFingerIdentify();
  }