summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwangqi <wangqi@google.com>2018-02-15 15:32:52 -0800
committerEric Erfanian <erfanian@google.com>2018-02-22 21:05:55 +0000
commit8d407a0e0ac28c55e863f7f4f3105ec9d6dea956 (patch)
treeaf08203c232566fe29b15facd1e0716ba23be9b4
parent494552349aefe18dd3dea0dd656d5cd48f813e64 (diff)
Annotate RTT as @TargetApi(28).
Bug: 67596257 Test: lint tests PiperOrigin-RevId: 185912566 Change-Id: I281fbd62865c9de150c3e2a7a3ea79c3eb85c529
-rw-r--r--java/com/android/dialer/simulator/impl/RttChatBot.java2
-rw-r--r--java/com/android/incallui/call/DialerCall.java2
2 files changed, 4 insertions, 0 deletions
diff --git a/java/com/android/dialer/simulator/impl/RttChatBot.java b/java/com/android/dialer/simulator/impl/RttChatBot.java
index 9c2989a07..5a7769f3e 100644
--- a/java/com/android/dialer/simulator/impl/RttChatBot.java
+++ b/java/com/android/dialer/simulator/impl/RttChatBot.java
@@ -16,6 +16,7 @@
package com.android.dialer.simulator.impl;
+import android.annotation.TargetApi;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
@@ -30,6 +31,7 @@ import java.util.List;
import java.util.Random;
/** Chat bot to generate remote RTT chat messages. */
+@TargetApi(28)
public class RttChatBot {
interface Callback {
diff --git a/java/com/android/incallui/call/DialerCall.java b/java/com/android/incallui/call/DialerCall.java
index cbe7c57a6..378806183 100644
--- a/java/com/android/incallui/call/DialerCall.java
+++ b/java/com/android/incallui/call/DialerCall.java
@@ -17,6 +17,7 @@
package com.android.incallui.call;
import android.Manifest.permission;
+import android.annotation.TargetApi;
import android.content.Context;
import android.hardware.camera2.CameraCharacteristics;
import android.net.Uri;
@@ -929,6 +930,7 @@ public class DialerCall implements VideoTechListener, StateChangedListener, Capa
return getVideoTech().isTransmittingOrReceiving() || VideoProfile.isVideo(getVideoState());
}
+ @TargetApi(28)
public boolean isRttCall() {
if (BuildCompat.isAtLeastP()) {
return getTelecomCall().isRttActive();