diff options
author | twyen <twyen@google.com> | 2018-03-19 15:20:59 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-03-19 15:23:28 -0700 |
commit | cd3d49843431913c2ff042d2294a8b5201877882 (patch) | |
tree | 7bd55b5175802fe3ac8fe4c45bf27cdd583ee580 /java/com/android/dialer/calllog/CallLogModule.java | |
parent | f4a48247329967ecc3f952b8604f122d0cbc2e28 (diff) |
Implement VoicemailDataSource
This data source determines if the call is to the voicemail inbox.
isVoicemail() is removed from NumberAttributes and PhoneLookup. It is yet decided how in call UI should handle voicemail calls in the future.
TAG_CHANGE_OK=proto not in prod yet. Please clear app data.
TYPE_CHANGE_OK=above
Bug: 70989587
Test: Unit tests
PiperOrigin-RevId: 189650273
Change-Id: Iafebf1abb18c74301b62a72d1d04deecd6d78d29
Diffstat (limited to 'java/com/android/dialer/calllog/CallLogModule.java')
-rw-r--r-- | java/com/android/dialer/calllog/CallLogModule.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/java/com/android/dialer/calllog/CallLogModule.java b/java/com/android/dialer/calllog/CallLogModule.java index 6c85fd631..9dd9a794d 100644 --- a/java/com/android/dialer/calllog/CallLogModule.java +++ b/java/com/android/dialer/calllog/CallLogModule.java @@ -20,6 +20,7 @@ import com.android.dialer.calllog.datasources.CallLogDataSource; import com.android.dialer.calllog.datasources.DataSources; import com.android.dialer.calllog.datasources.phonelookup.PhoneLookupDataSource; import com.android.dialer.calllog.datasources.systemcalllog.SystemCallLogDataSource; +import com.android.dialer.calllog.datasources.voicemail.VoicemailDataSource; import com.google.common.collect.ImmutableList; import dagger.Module; import dagger.Provides; @@ -31,10 +32,11 @@ public abstract class CallLogModule { @Provides static DataSources provideCallLogDataSources( SystemCallLogDataSource systemCallLogDataSource, - PhoneLookupDataSource phoneLookupDataSource) { + PhoneLookupDataSource phoneLookupDataSource, + VoicemailDataSource voicemailDataSource) { // System call log must be first, see getDataSourcesExcludingSystemCallLog below. ImmutableList<CallLogDataSource> allDataSources = - ImmutableList.of(systemCallLogDataSource, phoneLookupDataSource); + ImmutableList.of(systemCallLogDataSource, phoneLookupDataSource, voicemailDataSource); return new DataSources() { @Override public SystemCallLogDataSource getSystemCallLogDataSource() { |