diff options
author | twyen <twyen@google.com> | 2017-07-31 10:48:05 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-08-01 08:37:14 -0700 |
commit | cc89710d16fbfd3c979ae5881b6849ee1ee62881 (patch) | |
tree | 94ea75ec5e37d532e9ed9ed568abed1d6bc59b3f /java/com | |
parent | e4030e8376e5052157910aae31ff838ad8157e4e (diff) |
Implement Duo disclosure
The duo disclosure takes priority over the nearby places, and will be shown if all the conditions are met:
Disclosure enabled by flag show_duo_disclosure (default:false)
Duo module is enabled
Is in the call log tab
Disclosure is not dismissed.
The auto dismiss after 24 hours is not implemented. The help center article points to dialer_duo_disclosure which is not created yet.
Test: GoogleCallLogAdapterTest
PiperOrigin-RevId: 163714903
Change-Id: I724c6961af2912108c81d69a23d84682b721a58c
Diffstat (limited to 'java/com')
-rw-r--r-- | java/com/android/dialer/lightbringer/Lightbringer.java | 2 | ||||
-rw-r--r-- | java/com/android/dialer/lightbringer/stub/LightbringerStub.java | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/java/com/android/dialer/lightbringer/Lightbringer.java b/java/com/android/dialer/lightbringer/Lightbringer.java index 9b8a18061..9120b24db 100644 --- a/java/com/android/dialer/lightbringer/Lightbringer.java +++ b/java/com/android/dialer/lightbringer/Lightbringer.java @@ -28,6 +28,8 @@ import android.telecom.PhoneAccountHandle; public interface Lightbringer { + boolean isEnabled(); + @MainThread boolean isReachable(@NonNull Context context, @Nullable String number); diff --git a/java/com/android/dialer/lightbringer/stub/LightbringerStub.java b/java/com/android/dialer/lightbringer/stub/LightbringerStub.java index 92230a49e..c98ae091b 100644 --- a/java/com/android/dialer/lightbringer/stub/LightbringerStub.java +++ b/java/com/android/dialer/lightbringer/stub/LightbringerStub.java @@ -35,6 +35,11 @@ public class LightbringerStub implements Lightbringer { @Inject public LightbringerStub() {} + @Override + public boolean isEnabled() { + return false; + } + @MainThread @Override public boolean isReachable(@NonNull Context context, @Nullable String number) { |