Simplifying some launcher themes
> Replacing some colors with theme attributes > Simplifying styles definition by removing unnecessary inheritance and inlining some definitions Change-Id: Ifa167515cae6a7fd3720f1a52ff9ce11abb4495f
This commit is contained in:
1 parent
9e76f682f3
commit
1f3f07d47c
43 files changed
+195
-229
No files matched your search
@@ -27,7 +27,6 @@ import android.content.pm.PackageManager;
|
||||
import android.content.pm.PackageManager.NameNotFoundException;
|
||||
import android.content.pm.ResolveInfo;
|
||||
import android.content.res.Resources;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.Matrix;
|
||||
@@ -608,17 +607,6 @@ public final class Utilities {
|
||||
return c == null || c.isEmpty();
|
||||
}
|
||||
|
||||
public static int getColorAccent(Context context) {
|
||||
return getAttrColor(context, android.R.attr.colorAccent);
|
||||
}
|
||||
|
||||
public static int getAttrColor(Context context, int attr) {
|
||||
TypedArray ta = context.obtainStyledAttributes(new int[]{attr});
|
||||
int colorAccent = ta.getColor(0, 0);
|
||||
ta.recycle();
|
||||
return colorAccent;
|
||||
}
|
||||
|
||||
public static void sendCustomAccessibilityEvent(View target, int type, String text) {
|
||||
AccessibilityManager accessibilityManager = (AccessibilityManager)
|
||||
target.getContext().getSystemService(Context.ACCESSIBILITY_SERVICE);
|
||||
|
||||
Reference in new issue
Block a user