summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWalter Jang <wjang@google.com>2017-02-10 08:54:46 -0800
committerWalter Jang <wjang@google.com>2017-02-10 08:54:46 -0800
commit529c99e315cb54f0a027372069eee1c8abc53412 (patch)
treef7b5294e229bdea5dcd2a5e69adbf3753cd01c38
parent7aba85a08c4729123a55341e8a0f9eb5a89e1a14 (diff)
downloadContactsCommon-529c99e315cb54f0a027372069eee1c8abc53412.tar.gz
Switch use of Assert outside of tests to Preconditions
Test: none Bug: 35234289 Change-Id: I25d60d797aec0eea1fa7d91b6b3e6de203858f42
-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;
}