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

Commit 9f3aec6c authored by Walter Jang's avatar Walter Jang Committed by android-build-merger
Browse files

Switch use of Assert outside of tests to Preconditions

am: 34ae3fcd

Change-Id: I80e56e12a5c21985120d35b9f8c7db7edd0fae3f
parents a62ddb37 34ae3fcd
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -31,7 +31,7 @@ import android.text.TextUtils;


import com.android.contacts.R;
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
 * 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.
     * The default is 0.0f.
     */
     */
    public LetterTileDrawable setOffset(float offset) {
    public LetterTileDrawable setOffset(float offset) {
        Assert.assertTrue(offset >= -0.5f && offset <= 0.5f);
        Preconditions.checkArgument(offset >= -0.5f && offset <= 0.5f);
        mOffset = offset;
        mOffset = offset;
        return this;
        return this;
    }
    }