summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Maxwell <maxwelb@google.com>2016-01-21 23:25:10 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-01-21 23:25:10 +0000
commit5f732e5efab015dd1742016d2c1d61d0aa831194 (patch)
tree78cf8c8c0b6b433de6ad627e69884cda2abe1d03
parent774a55693fed8b0333587154d1d69d3db35f3f21 (diff)
parentd05ac12ca3e94a52afbe31fe01f83b817eebea85 (diff)
Ensuring quickResponse isn\'t available while fbe locked
am: db576118c0 * commit 'db576118c094a67b5c60b8c63f4426c9530ba94a': Ensuring quickResponse isn't available while fbe locked
-rw-r--r--InCallUI/src/com/android/incallui/AnswerPresenter.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/InCallUI/src/com/android/incallui/AnswerPresenter.java b/InCallUI/src/com/android/incallui/AnswerPresenter.java
index 1307a3e54..6e1fb3cfb 100644
--- a/InCallUI/src/com/android/incallui/AnswerPresenter.java
+++ b/InCallUI/src/com/android/incallui/AnswerPresenter.java
@@ -18,11 +18,10 @@ package com.android.incallui;
import android.content.Context;
+import com.android.dialer.compat.UserManagerCompat;
import com.android.dialer.util.TelecomUtil;
import com.android.incallui.InCallPresenter.InCallState;
-import android.telecom.VideoProfile;
-
import java.util.List;
/**
@@ -281,8 +280,8 @@ public class AnswerPresenter extends Presenter<AnswerPresenter.AnswerUi>
return;
}
mHasTextMessages = textMsgs != null;
- boolean withSms =
- call.can(android.telecom.Call.Details.CAPABILITY_RESPOND_VIA_TEXT)
+ boolean withSms = UserManagerCompat.isUserUnlocked(getUi().getContext())
+ && call.can(android.telecom.Call.Details.CAPABILITY_RESPOND_VIA_TEXT)
&& mHasTextMessages;
// Only present the user with the option to answer as a video call if the incoming call is