Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34ae3fcd authored by Walter Jang's avatar Walter Jang
Browse files

Switch use of Assert outside of tests to Preconditions

Test: none
Bug: 35234289
Change-Id: I378850cee8133a54b751e8b172169232739bc1da
parent 2a18e0d0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ import android.text.TextUtils;

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 @@ 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;
    }