Merge "Switch use of Assert outside of tests to Preconditions"
am: 8f94b81c67

Change-Id: I4ca09bc51ef27005cc6c55195c8625f6e20d2f0d
diff --git a/src/com/android/contacts/common/lettertiles/LetterTileDrawable.java b/src/com/android/contacts/common/lettertiles/LetterTileDrawable.java
index 0966c13..520ac53 100644
--- a/src/com/android/contacts/common/lettertiles/LetterTileDrawable.java
+++ b/src/com/android/contacts/common/lettertiles/LetterTileDrawable.java
@@ -31,7 +31,7 @@
 
 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 @@
      * 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;
     }