Rabbit-R1/original r1/java/sources/androidx/appcompat/text/AllCapsTransformationMethod.java

29 lines
920 B
Java
Raw Normal View History

2024-05-21 21:08:36 +00:00
package androidx.appcompat.text;
import android.content.Context;
import android.graphics.Rect;
import android.text.method.TransformationMethod;
import android.view.View;
import java.util.Locale;
/* loaded from: classes.dex */
public class AllCapsTransformationMethod implements TransformationMethod {
private Locale mLocale;
@Override // android.text.method.TransformationMethod
public void onFocusChanged(View view, CharSequence charSequence, boolean z, int i, Rect rect) {
}
public AllCapsTransformationMethod(Context context) {
this.mLocale = context.getResources().getConfiguration().locale;
}
@Override // android.text.method.TransformationMethod
public CharSequence getTransformation(CharSequence charSequence, View view) {
if (charSequence != null) {
return charSequence.toString().toUpperCase(this.mLocale);
}
return null;
}
}