diff options
author | Jorim Jaggi <jjaggi@google.com> | 2014-08-25 16:09:11 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-08-25 16:09:12 +0000 |
commit | e60982f5361fa5a093ff7a94189b1cf7a3618bed (patch) | |
tree | de5e3907658d7751030a9dc73b112560e91e06f5 | |
parent | 7af40415dc2aa510bdb483519726aa3ae75bd765 (diff) | |
parent | fb28c0e129896b17e4906b873bf44eb103ac2a8d (diff) | |
download | frameworks_base-e60982f5361fa5a093ff7a94189b1cf7a3618bed.zip frameworks_base-e60982f5361fa5a093ff7a94189b1cf7a3618bed.tar.gz frameworks_base-e60982f5361fa5a093ff7a94189b1cf7a3618bed.tar.bz2 |
Merge "Fix invisible security method" into lmp-dev
3 files changed, 31 insertions, 13 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardPINView.java b/packages/Keyguard/src/com/android/keyguard/KeyguardPINView.java index 66c30c7..55538a7 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardPINView.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardPINView.java @@ -85,6 +85,7 @@ public class KeyguardPINView extends KeyguardPinBasedInputView { @Override public void startAppearAnimation() { enableClipping(false); + setAlpha(1f); setTranslationY(mAppearAnimationUtils.getStartTranslation()); animate() .setDuration(500) diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java b/packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java index 3b05d11..65c4ce2 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java @@ -416,6 +416,7 @@ public class KeyguardPatternView extends LinearLayout implements KeyguardSecurit @Override public void startAppearAnimation() { enableClipping(false); + setAlpha(1f); setTranslationY(mAppearAnimationUtils.getStartTranslation()); animate() .setDuration(500) @@ -444,7 +445,7 @@ public class KeyguardPatternView extends LinearLayout implements KeyguardSecurit mLockPatternView.clearPattern(); animate() .alpha(0f) - .translationY(-100) + .translationY(mDisappearYTranslation) .setInterpolator(AnimationUtils.loadInterpolator( mContext, android.R.interpolator.fast_out_linear_in)) .setDuration(100) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java index e3f034d..57df1d8 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java @@ -611,12 +611,35 @@ public abstract class BaseStatusBar extends SystemUI implements entry.expandedBig.findViewById(com.android.internal.R.id.media_action_area) != null; } - private void startAppNotificationSettingsActivity(String packageName, int appUid) { - Intent intent = new Intent(Settings.ACTION_APP_NOTIFICATION_SETTINGS); + private void startAppNotificationSettingsActivity(String packageName, final int appUid) { + final Intent intent = new Intent(Settings.ACTION_APP_NOTIFICATION_SETTINGS); intent.putExtra(Settings.EXTRA_APP_PACKAGE, packageName); intent.putExtra(Settings.EXTRA_APP_UID, appUid); - TaskStackBuilder.create(mContext).addNextIntentWithParentStack(intent) - .startActivities(null, new UserHandle(UserHandle.getUserId(appUid))); + + final boolean keyguardShowing = mStatusBarKeyguardViewManager.isShowing(); + dismissKeyguardThenExecute(new OnDismissAction() { + @Override + public boolean onDismiss() { + AsyncTask.execute(new Runnable() { + public void run() { + try { + if (keyguardShowing) { + ActivityManagerNative.getDefault() + .keyguardWaitingForActivityDrawn(); + } + TaskStackBuilder.create(mContext) + .addNextIntentWithParentStack(intent) + .startActivities(null, + new UserHandle(UserHandle.getUserId(appUid))); + overrideActivityPendingAppTransition(keyguardShowing); + } catch (RemoteException e) { + } + } + }); + animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_NONE, true /* force */); + return true; + } + }); } protected SwipeHelper.LongPressListener getNotificationLongClicker() { @@ -1070,14 +1093,7 @@ public abstract class BaseStatusBar extends SystemUI implements final int appUidF = appUid; settingsButton.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { - dismissKeyguardThenExecute(new OnDismissAction() { - public boolean onDismiss() { - startAppNotificationSettingsActivity(pkg, appUidF); - animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_NONE); - visibilityChanged(false); - return true; - } - }); + startAppNotificationSettingsActivity(pkg, appUidF); } }); } else { |