Switch use of Assert outside of tests to Preconditions
Test: none
Bug: 35234289
Change-Id: I378850cee8133a54b751e8b172169232739bc1da
diff --git a/src/com/android/contacts/lettertiles/LetterTileDrawable.java b/src/com/android/contacts/lettertiles/LetterTileDrawable.java
index f5b4c75..5652ac6 100644
--- a/src/com/android/contacts/lettertiles/LetterTileDrawable.java
+++ b/src/com/android/contacts/lettertiles/LetterTileDrawable.java
@@ -31,7 +31,7 @@
import com.android.contacts.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
@@ -248,7 +248,7 @@
* 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;
}