summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2014-09-25 00:06:20 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-09-25 00:06:20 +0000
commit43c5e0022b5f8345316608e996904c26c75cbe1b (patch)
treecb4c17b9a3ef5d42c4c770650938c2794e6126a8
parent05ac723b8e7488e63b405da806e1d7ab0c8559e6 (diff)
parent0d472daee45249d3954454fc9691724215752013 (diff)
am c74a2f38: am 7b601bc0: am 5e001805: am 04746eec: Reallow quick text response on lockscreen
* commit 'c74a2f3841fdcbbe15a3884e9c1f07c595c49041': Reallow quick text response on lockscreen
-rw-r--r--InCallUI/src/com/android/incallui/AnswerPresenter.java7
1 files 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<AnswerPresenter.AnswerUi>
private void configureAnswerTargetsForSms(Call call, List<String> 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 {