AllCapsTransformationMethod.java
1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package android.support.v7.text;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Rect;
import android.support.annotation.RestrictTo;
import android.text.method.TransformationMethod;
import android.view.View;
import java.util.Locale;
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public class AllCapsTransformationMethod
implements TransformationMethod
{
private Locale a;
public AllCapsTransformationMethod(Context paramContext)
{
this.a = paramContext.getResources().getConfiguration().locale;
}
public CharSequence getTransformation(CharSequence paramCharSequence, View paramView)
{
if (paramCharSequence != null) {
return paramCharSequence.toString().toUpperCase(this.a);
}
return null;
}
public void onFocusChanged(View paramView, CharSequence paramCharSequence, boolean paramBoolean, int paramInt, Rect paramRect) {}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v7/text/AllCapsTransformationMethod.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/