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
diff --git a/InCallUI/src/com/android/incallui/AnswerPresenter.java b/InCallUI/src/com/android/incallui/AnswerPresenter.java
index 1307a3e..6e1fb3c 100644
--- a/InCallUI/src/com/android/incallui/AnswerPresenter.java
+++ b/InCallUI/src/com/android/incallui/AnswerPresenter.java
@@ -18,11 +18,10 @@
 
 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 @@
             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