blob: 0462a1dcf21ea3062cb0464cb7338f8d5f5bcbf2 [file] [log] [blame]
package com.airbnb.lottie.animation;
import android.graphics.Paint;
import android.os.LocaleList;
import androidx.annotation.NonNull;
/**
* Custom paint that doesn't set text locale.
* It takes ~1ms on initialization and isn't needed so removing it speeds up
* setComposition.
*/
public class LPaint extends Paint {
public LPaint() {
}
public LPaint(int flags) {
super(flags);
}
@Override
public void setTextLocales(@NonNull LocaleList locales) {
// Do nothing.
}
}