summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Utilities.java
diff options
context:
space:
mode:
authorMichael Bestas <mikeioannina@gmail.com>2014-06-14 11:17:25 +0300
committerAbhisek Devkota <ciwrl@cyanogenmod.com>2014-06-17 15:42:08 -0700
commitcf43a17640a7eede4106670f97e0834b5ea0f976 (patch)
tree313a96f471db1403ef96fdc1345cda68a93fac56 /src/com/android/launcher3/Utilities.java
parent7b286808c4f606053f1b92c9563ea3b23ff7d1ec (diff)
downloadandroid_packages_apps_Trebuchet-cf43a17640a7eede4106670f97e0834b5ea0f976.tar.gz
android_packages_apps_Trebuchet-cf43a17640a7eede4106670f97e0834b5ea0f976.tar.bz2
android_packages_apps_Trebuchet-cf43a17640a7eede4106670f97e0834b5ea0f976.zip
Revert font change support
Change-Id: I1f1ecd348c485e370b92c4b49512a3bc5d9d56a7
Diffstat (limited to 'src/com/android/launcher3/Utilities.java')
-rw-r--r--src/com/android/launcher3/Utilities.java34
1 files changed, 9 insertions, 25 deletions
diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java
index fc6496d00..cbc978585 100644
--- a/src/com/android/launcher3/Utilities.java
+++ b/src/com/android/launcher3/Utilities.java
@@ -21,14 +21,21 @@ import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
-import android.graphics.*;
+import android.graphics.Bitmap;
+import android.graphics.BlurMaskFilter;
+import android.graphics.Canvas;
+import android.graphics.ColorMatrix;
+import android.graphics.ColorMatrixColorFilter;
+import android.graphics.Matrix;
+import android.graphics.Paint;
+import android.graphics.PaintFlagsDrawFilter;
+import android.graphics.Rect;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.PaintDrawable;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.View;
-import android.widget.TextView;
import android.widget.Toast;
import java.util.ArrayList;
@@ -51,8 +58,6 @@ public final class Utilities {
private static final Rect sOldBounds = new Rect();
private static final Canvas sCanvas = new Canvas();
- private static Typeface sTypeface;
-
static {
sCanvas.setDrawFilter(new PaintFlagsDrawFilter(Paint.DITHER_FLAG,
Paint.FILTER_BITMAP_FLAG));
@@ -213,27 +218,6 @@ public final class Utilities {
}
/**
- * Generates the default icon typeface for use in icons.
- *
- * @param familyName May be null. The name of the font family.
- * @param style The style (normal, bold, italic) of the typeface. e.g. NORMAL, BOLD, ITALIC, BOLD_ITALIC
- */
- static void generateTypeface(String familyName, int style) {
- sTypeface = Typeface.create(familyName, style);
- }
-
- /**
- * Applies the default icon typeface to a textview.
- *
- * @param textView View to apply typeface to.
- */
- static void applyTypeface(TextView textView) {
- if (sTypeface != null) {
- textView.setTypeface(sTypeface);
- }
- }
-
- /**
* Given a coordinate relative to the descendant, find the coordinate in a parent view's
* coordinates.
*