diff options
author | maxwelb <maxwelb@google.com> | 2017-07-13 17:27:42 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-07-24 18:48:32 +0000 |
commit | 95f7abf1160717efe8ad5b8fa79bd8de3648f4a0 (patch) | |
tree | 2b2088268a15ed6a33c94fbd8197290cd65fecb3 /java/com/android/dialer/app/calllog | |
parent | d32cff88a24531d10fad6a0dfb3df5e466d5f1ff (diff) |
Update ECCapabilities for temporarily unavailable status
This CL makes a number of changes to include temporarily unavailable
statuses (go/ec-temp-unavailable) as part ECCapabilities.
- Adds isTemporarilyUnavailable methods, which will be set by
ECBroadcastReceiver upon getting a capabilities update.
- Adds a builder to ECCapabilities as there are now 4 booleans that are
set upon construction.
- Changes the names of getters on ECCapabilities, which was required to
get autovalue to correctly generate the builder.
- Adds an ALL_CAPABILITIES constant to match the NO_CAPABILITIES
constant.
Bug: 62609419
Test: Existing tests, ECCapabilitiesTest
PiperOrigin-RevId: 161890511
Change-Id: I967a9a14793ac12101ecfed59e5f7af1217faf3b
Diffstat (limited to 'java/com/android/dialer/app/calllog')
-rw-r--r-- | java/com/android/dialer/app/calllog/CallLogAdapter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/com/android/dialer/app/calllog/CallLogAdapter.java b/java/com/android/dialer/app/calllog/CallLogAdapter.java index 41c9d6003..e3509a964 100644 --- a/java/com/android/dialer/app/calllog/CallLogAdapter.java +++ b/java/com/android/dialer/app/calllog/CallLogAdapter.java @@ -347,7 +347,7 @@ public class CallLogAdapter extends GroupingListAdapter EnrichedCallCapabilities capabilities = getEnrichedCallManager().getCapabilities(viewHolder.number); viewHolder.isCallComposerCapable = - capabilities != null && capabilities.supportsCallComposer(); + capabilities != null && capabilities.isCallComposerCapable(); generateAndMapNewCallDetailsEntriesHistoryResults( viewHolder.number, viewHolder.getDetailedPhoneDetails(), @@ -869,7 +869,7 @@ public class CallLogAdapter extends GroupingListAdapter getEnrichedCallManager().requestCapabilities(number); return false; } - return capabilities.supportsCallComposer(); + return capabilities.isCallComposerCapable(); } @NonNull |