diff options
Diffstat (limited to 'java/com/android/dialer/duo')
-rw-r--r-- | java/com/android/dialer/duo/Duo.java | 3 | ||||
-rw-r--r-- | java/com/android/dialer/duo/stub/DuoStub.java | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/java/com/android/dialer/duo/Duo.java b/java/com/android/dialer/duo/Duo.java index 5f49e3e7e..d9147844f 100644 --- a/java/com/android/dialer/duo/Duo.java +++ b/java/com/android/dialer/duo/Duo.java @@ -33,6 +33,9 @@ public interface Duo { /** @return true if the Duo integration is enabled on this device. */ boolean isEnabled(@NonNull Context context); + /** @return true if Duo is installed on this device. */ + boolean isInstalled(@NonNull Context context); + /** * @return true if Duo is installed and the user has gone through the set-up flow confirming their * phone number. diff --git a/java/com/android/dialer/duo/stub/DuoStub.java b/java/com/android/dialer/duo/stub/DuoStub.java index 398e99035..cfa400a7f 100644 --- a/java/com/android/dialer/duo/stub/DuoStub.java +++ b/java/com/android/dialer/duo/stub/DuoStub.java @@ -41,6 +41,11 @@ public class DuoStub implements Duo { } @Override + public boolean isInstalled(@NonNull Context context) { + return false; + } + + @Override public boolean isActivated(@NonNull Context context) { return false; } |