mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
29 lines
920 B
Java
29 lines
920 B
Java
|
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;
|
||
|
}
|
||
|
}
|