summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWalter Jang <wjang@google.com>2017-02-13 17:49:12 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-02-13 17:49:12 +0000
commit35e3a4db3835608866d9f7f18c49c95aec3228ea (patch)
treef7b5294e229bdea5dcd2a5e69adbf3753cd01c38
parent7aba85a08c4729123a55341e8a0f9eb5a89e1a14 (diff)
parent8f94b81c678227a5cc4eeb7b611b2e02e79dc149 (diff)
downloadContactsCommon-35e3a4db3835608866d9f7f18c49c95aec3228ea.tar.gz
Merge "Switch use of Assert outside of tests to Preconditions"
am: 8f94b81c67 Change-Id: I4ca09bc51ef27005cc6c55195c8625f6e20d2f0d
-rw-r--r--src/com/android/contacts/common/lettertiles/LetterTileDrawable.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/contacts/common/lettertiles/LetterTileDrawable.java b/src/com/android/contacts/common/lettertiles/LetterTileDrawable.java
index 0966c13d..520ac539 100644
--- a/src/com/android/contacts/common/lettertiles/LetterTileDrawable.java
+++ b/src/com/android/contacts/common/lettertiles/LetterTileDrawable.java
@@ -31,7 +31,7 @@ import android.text.TextUtils;
import com.android.contacts.common.R;
-import junit.framework.Assert;
+import com.google.common.base.Preconditions;
/**
* A drawable that encapsulates all the functionality needed to display a letter tile to
@@ -240,7 +240,7 @@ public class LetterTileDrawable extends Drawable {
* The default is 0.0f.
*/
public LetterTileDrawable setOffset(float offset) {
- Assert.assertTrue(offset >= -0.5f && offset <= 0.5f);
+ Preconditions.checkArgument(offset >= -0.5f && offset <= 0.5f);
mOffset = offset;
return this;
}