am 4eada647: Merge "Only show the bouncer for the assistant if secure." into jb-mr1-lockscreen-dev
* commit '4eada64770bc2f021cb04cbb77efbad1c9a7adc4': Only show the bouncer for the assistant if secure.
This commit is contained in:
@@ -151,9 +151,19 @@ public abstract class KeyguardActivityLauncher {
|
|||||||
boolean useDefaultAnimations,
|
boolean useDefaultAnimations,
|
||||||
final Handler worker,
|
final Handler worker,
|
||||||
final Runnable onStarted) {
|
final Runnable onStarted) {
|
||||||
|
|
||||||
final Context context = getContext();
|
final Context context = getContext();
|
||||||
final Bundle animation = useDefaultAnimations ? null
|
final Bundle animation = useDefaultAnimations ? null
|
||||||
: ActivityOptions.makeCustomAnimation(context, 0, 0).toBundle();
|
: ActivityOptions.makeCustomAnimation(context, 0, 0).toBundle();
|
||||||
|
launchActivityWithAnimation(intent, showsWhileLocked, animation, worker, onStarted);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void launchActivityWithAnimation(final Intent intent,
|
||||||
|
boolean showsWhileLocked,
|
||||||
|
final Bundle animation,
|
||||||
|
final Handler worker,
|
||||||
|
final Runnable onStarted) {
|
||||||
|
|
||||||
LockPatternUtils lockPatternUtils = getLockPatternUtils();
|
LockPatternUtils lockPatternUtils = getLockPatternUtils();
|
||||||
intent.addFlags(
|
intent.addFlags(
|
||||||
Intent.FLAG_ACTIVITY_NEW_TASK
|
Intent.FLAG_ACTIVITY_NEW_TASK
|
||||||
|
|||||||
@@ -1501,19 +1501,8 @@ public class KeyguardHostView extends KeyguardViewBase {
|
|||||||
getHandler(), null);
|
getHandler(), null);
|
||||||
|
|
||||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
setOnDismissAction(new OnDismissAction() {
|
|
||||||
@Override
|
|
||||||
public boolean onDismiss() {
|
|
||||||
try {
|
|
||||||
mContext.startActivityAsUser(intent, opts.toBundle(),
|
|
||||||
new UserHandle(UserHandle.USER_CURRENT));
|
|
||||||
} catch (ActivityNotFoundException e) {
|
|
||||||
Slog.w(TAG, "Activity not found for " + intent.getAction());
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
mViewStateManager.showBouncer(true);
|
mActivityLauncher.launchActivityWithAnimation(
|
||||||
|
intent, false, opts.toBundle(), null, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user