diff options
author | Nancy Chen <nancychen@google.com> | 2015-12-22 22:35:19 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-12-22 22:35:19 +0000 |
commit | 898b046bd6aa1ffdd5ef602f4dfdd55c74c2bbd7 (patch) | |
tree | 7e7efcaa1ab486f5c3f57fb6819d498657031362 /InCallUI/src/com | |
parent | acf06a5d427e4a7540576bed34c31312b59c6113 (diff) | |
parent | 5f8a6ce66ae759be057740a5bfdc1358d143115d (diff) |
Merge "Use some Call.Details methods available in L-Mr1." into ub-contactsdialer-b-dev
Diffstat (limited to 'InCallUI/src/com')
-rw-r--r-- | InCallUI/src/com/android/incallui/compat/telecom/DetailsCompat.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/InCallUI/src/com/android/incallui/compat/telecom/DetailsCompat.java b/InCallUI/src/com/android/incallui/compat/telecom/DetailsCompat.java index c82a972a7..b9f82a9f1 100644 --- a/InCallUI/src/com/android/incallui/compat/telecom/DetailsCompat.java +++ b/InCallUI/src/com/android/incallui/compat/telecom/DetailsCompat.java @@ -19,7 +19,7 @@ import android.os.Build; import android.os.Bundle; import android.telecom.Call.Details; -import com.android.contacts.common.compat.SdkVersionOverride; +import com.android.contacts.common.compat.CompatUtils; import com.android.incallui.Log; /** @@ -41,7 +41,7 @@ public class DetailsCompat { * @return The given details' intent extras */ public static Bundle getIntentExtras(Details details) { - if (SdkVersionOverride.getSdkVersion(Build.VERSION_CODES.M) >= Build.VERSION_CODES.M) { + if (CompatUtils.isMarshmallowCompatible()) { return details.getIntentExtras(); } return details.getExtras(); @@ -56,7 +56,7 @@ public class DetailsCompat { * @return Whether the specified property is supported. */ public static boolean hasProperty(Details details, int property) { - if (SdkVersionOverride.getSdkVersion(Build.VERSION_CODES.M) >= Build.VERSION_CODES.M) { + if (CompatUtils.isMarshmallowCompatible()) { return details.hasProperty(property); } return (details.getCallProperties() & property) != 0; @@ -71,7 +71,7 @@ public class DetailsCompat { * @return Whether the specified capability is supported. */ public static boolean can(Details details, int capability) { - if (SdkVersionOverride.getSdkVersion(Build.VERSION_CODES.M) >= Build.VERSION_CODES.M) { + if (CompatUtils.isLollipopMr1Compatible()) { return details.can(capability); } return (details.getCallCapabilities() & capability) != 0; @@ -84,7 +84,7 @@ public class DetailsCompat { * @return A human readable string representation. */ public static String capabilitiesToString(int capabilities) { - if (SdkVersionOverride.getSdkVersion(Build.VERSION_CODES.M) >= Build.VERSION_CODES.M) { + if (CompatUtils.isLollipopMr1Compatible()) { return Details.capabilitiesToString(capabilities); } return capabilitiesToStringLollipop(capabilities); |