diff options
Diffstat (limited to 'java/com/android/dialer/duo')
-rw-r--r-- | java/com/android/dialer/duo/Duo.java | 6 | ||||
-rw-r--r-- | java/com/android/dialer/duo/stub/DuoStub.java | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/java/com/android/dialer/duo/Duo.java b/java/com/android/dialer/duo/Duo.java index 839c1d3a8..ff694c053 100644 --- a/java/com/android/dialer/duo/Duo.java +++ b/java/com/android/dialer/duo/Duo.java @@ -31,6 +31,12 @@ public interface Duo { boolean isEnabled(); + /** + * @return true if Duo is installed and the user has gone through the set-up flow confirming their + * phone number. + */ + boolean isActivated(@NonNull Context context); + @MainThread boolean isReachable(@NonNull Context context, @Nullable String number); diff --git a/java/com/android/dialer/duo/stub/DuoStub.java b/java/com/android/dialer/duo/stub/DuoStub.java index 82b9c79e3..7cc8f7808 100644 --- a/java/com/android/dialer/duo/stub/DuoStub.java +++ b/java/com/android/dialer/duo/stub/DuoStub.java @@ -40,6 +40,11 @@ public class DuoStub implements Duo { return false; } + @Override + public boolean isActivated(@NonNull Context context) { + return false; + } + @MainThread @Override public boolean isReachable(@NonNull Context context, @Nullable String number) { |