summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Maxwell <maxwelb@google.com>2016-01-15 15:14:53 -0800
committerBrandon Maxwell <maxwelb@google.com>2016-01-20 14:18:39 -0800
commitd05ac12ca3e94a52afbe31fe01f83b817eebea85 (patch)
tree4af4e41d4b38ca3c0456c91ec2c4f869d6a9a869
parent7f07f9f6f1e209359cf069b1fa4b0dfc0b371f64 (diff)
Ensuring quickResponse isn't available while fbe locked
+ Sending an outgoing message is not supported while in the fbe locked state so the option to send an SMS should always be hidden. Bug=26542221 Change-Id: I9d630bdf73ec9f6965607c60f36b7a04c04f4134
-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