diff options
Diffstat (limited to 'java/com/android/incallui/answer/impl/hint')
-rw-r--r-- | java/com/android/incallui/answer/impl/hint/AnswerHint.java | 2 | ||||
-rw-r--r-- | java/com/android/incallui/answer/impl/hint/PawSecretCodeListener.java | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/java/com/android/incallui/answer/impl/hint/AnswerHint.java b/java/com/android/incallui/answer/impl/hint/AnswerHint.java index dd3b8228a..1e78f50b8 100644 --- a/java/com/android/incallui/answer/impl/hint/AnswerHint.java +++ b/java/com/android/incallui/answer/impl/hint/AnswerHint.java @@ -27,7 +27,7 @@ public interface AnswerHint { /** * Inflates the hint's layout into the container. * - * <p>TODO: if the hint becomes more dependent on other UI elements of the AnswerFragment, + * <p>TODO(twyen): if the hint becomes more dependent on other UI elements of the AnswerFragment, * should put put and hintText into another data structure. */ void onCreateView(LayoutInflater inflater, ViewGroup container, View puck, TextView hintText); diff --git a/java/com/android/incallui/answer/impl/hint/PawSecretCodeListener.java b/java/com/android/incallui/answer/impl/hint/PawSecretCodeListener.java index 204c4e131..871d80c23 100644 --- a/java/com/android/incallui/answer/impl/hint/PawSecretCodeListener.java +++ b/java/com/android/incallui/answer/impl/hint/PawSecretCodeListener.java @@ -24,7 +24,6 @@ import android.support.annotation.IntDef; import android.support.annotation.VisibleForTesting; import android.text.TextUtils; import android.widget.Toast; -import com.android.dialer.common.Assert; import com.android.dialer.common.LogUtil; import com.android.dialer.configprovider.ConfigProviderBindings; import com.android.dialer.logging.DialerImpression.Type; @@ -59,7 +58,9 @@ public class PawSecretCodeListener extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { String host = intent.getData().getHost(); - Assert.checkState(!TextUtils.isEmpty(host)); + if (TextUtils.isEmpty(host)) { + return; + } String secretCode = ConfigProviderBindings.get(context).getString(CONFIG_PAW_SECRET_CODE, "729"); if (secretCode == null) { |