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 onScreenTurnedOn() {

    mKeyguardViewHost.onScreenTurnedOn();
    mKeyguardWallpaperManager.onScreenTurnedOn();

    beginStatics();
    refreshCacheScreenOn();
    startFingerIdentify();
  }
Ejemplo n.º 3
0
  public void show(Bundle options) {
    //        initSkylightHost();
    mKeyguardViewHost.show(options);

    updateNotifiOnkeyguard(true);
    beginStatics();
    DebugLog.d(TAG, "show  isScreenOn  updateListView");
    mKeyguardWallpaperManager.onKeyguardLockedWhenScreenOn();
    refreshCacheScreenOn();
    UIController.getInstance().onKeyguardLocked();

    if (isScreenOn()) {
      DebugLog.d(LOG_TAG, "show(Bundle options)--screen on");
      startFingerIdentify();
    }
  }