File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
policy/src/com/android/internal/policy/impl/keyguard Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1717
1818import android .os .Handler ;
1919import android .os .Looper ;
20- import android .util .Log ;
2120import android .view .View ;
2221
2322public class KeyguardViewStateManager implements SlidingChallengeLayout .OnChallengeScrolledListener {
@@ -29,6 +28,7 @@ public class KeyguardViewStateManager implements SlidingChallengeLayout.OnChalle
2928 private KeyguardSecurityView mKeyguardSecurityContainer ;
3029 private int [] mTmpPoint = new int [2 ];
3130 private static final int SCREEN_ON_HINT_DURATION = 1000 ;
31+ private static final int SCREEN_ON_RING_HINT_DELAY = 300 ;
3232 Handler mMainQueue = new Handler (Looper .myLooper ());
3333
3434 int mChallengeTop = 0 ;
@@ -147,7 +147,12 @@ public void onScrollStateChanged(int scrollState) {
147147 }
148148
149149 public void showUsabilityHints () {
150- mKeyguardSecurityContainer .showUsabilityHint ();
150+ mMainQueue .postDelayed ( new Runnable () {
151+ @ Override
152+ public void run () {
153+ mKeyguardSecurityContainer .showUsabilityHint ();
154+ }
155+ } , SCREEN_ON_RING_HINT_DELAY );
151156 mPagedView .showInitialPageHints ();
152157 mHideHintsRunnable = new Runnable () {
153158 @ Override
Original file line number Diff line number Diff line change @@ -255,7 +255,6 @@ protected void onUnhandledTap(MotionEvent ev) {
255255
256256 @ Override
257257 protected void onPageBeginMoving () {
258- enablePageLayers ();
259258 if (mViewStateManager != null ) {
260259 mViewStateManager .onPageBeginMoving ();
261260 }
@@ -416,6 +415,7 @@ protected void onEndReordering() {
416415 }
417416
418417 void showOutlinesAndSidePages () {
418+ enablePageLayers ();
419419 animateOutlinesAndSidePages (true );
420420 }
421421
@@ -424,13 +424,7 @@ void hideOutlinesAndSidePages() {
424424 }
425425
426426 public void showInitialPageHints () {
427- // We start with everything showing
428- setChildrenOutlineAlpha (1.0f );
429- setSidePagesAlpha (1.0f );
430-
431- int currPage = getCurrentPage ();
432- KeyguardWidgetFrame frame = getWidgetPageAt (currPage );
433- frame .setBackgroundAlpha (0f );
427+ showOutlinesAndSidePages ();
434428 }
435429
436430 void animateOutlinesAndSidePages (final boolean show ) {
You can’t perform that action at this time.
0 commit comments