From 4b80d252210137df98bb393b290725f93877b00c Mon Sep 17 00:00:00 2001 From: Daisuke Miyakawa Date: Wed, 14 Sep 2011 17:01:32 -0700 Subject: Use ICS version code Bug: 5047678 Change-Id: I748525684b82f16d7a799b035ad2cfed22fa02d9 --- .../java/com/android/common/contacts/DataUsageStatUpdater.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'common/java/com') diff --git a/common/java/com/android/common/contacts/DataUsageStatUpdater.java b/common/java/com/android/common/contacts/DataUsageStatUpdater.java index 6ff3807..273ae61 100644 --- a/common/java/com/android/common/contacts/DataUsageStatUpdater.java +++ b/common/java/com/android/common/contacts/DataUsageStatUpdater.java @@ -200,12 +200,9 @@ public class DataUsageStatUpdater { boolean successful = false; - // From ICS we can use per-contact-method structure. We'll check if the device supports it - // and call the API. - // - // STOPSHIP: Use Build.VERSION.SDK_INT when we're sure ICS has correct SDK version - // (bug 5047678) - if (TextUtils.equals("IceCreamSandwich", Build.VERSION.RELEASE)) { + // From ICS (SDK_INT 14) we can use per-contact-method structure. We'll check if the device + // supports it and call the API. + if (Build.VERSION.SDK_INT >= 14) { if (dataIds.isEmpty()) { if (Log.isLoggable(TAG, Log.DEBUG)) { Log.d(TAG, "Given list for data IDs is null. Ignoring."); -- cgit v1.2.3