From 9b75781430dbc6edaf223676fccc570b931cd7c2 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Wed, 24 Sep 2014 13:48:24 -0700 Subject: Reallow quick text response on lockscreen Bug: 17399771 Change-Id: I9fbc8157e547b2368baa5ebe29001e2a338655a2 --- InCallUI/src/com/android/incallui/AnswerPresenter.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/InCallUI/src/com/android/incallui/AnswerPresenter.java b/InCallUI/src/com/android/incallui/AnswerPresenter.java index e42f1fcae..8aa8615da 100644 --- a/InCallUI/src/com/android/incallui/AnswerPresenter.java +++ b/InCallUI/src/com/android/incallui/AnswerPresenter.java @@ -176,21 +176,18 @@ public class AnswerPresenter extends Presenter private void configureAnswerTargetsForSms(Call call, List textMsgs) { final Context context = getUi().getContext(); - final KeyguardManager km = - (KeyguardManager) context.getSystemService(Context.KEYGUARD_SERVICE); - final boolean isLockScreenShowing = km.inKeyguardRestrictedInputMode(); mHasTextMessages = textMsgs != null; boolean withSms = call.can(PhoneCapabilities.RESPOND_VIA_TEXT) && mHasTextMessages; if (call.isVideoCall(context)) { - if (withSms && !isLockScreenShowing) { + if (withSms) { getUi().showTargets(AnswerFragment.TARGET_SET_FOR_VIDEO_WITH_SMS); getUi().configureMessageDialog(textMsgs); } else { getUi().showTargets(AnswerFragment.TARGET_SET_FOR_VIDEO_WITHOUT_SMS); } } else { - if (withSms && !isLockScreenShowing) { + if (withSms) { getUi().showTargets(AnswerFragment.TARGET_SET_FOR_AUDIO_WITH_SMS); getUi().configureMessageDialog(textMsgs); } else { -- cgit v1.2.3