Clean up unused code and import declarations
Change-Id: If36fd2d99a51b07290b13f697b3ea08d31feb023
This commit is contained in:
@@ -24,7 +24,6 @@ import android.appwidget.AppWidgetProviderInfo;
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.ActivityInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.content.pm.ResolveInfo;
|
||||
import android.content.res.Configuration;
|
||||
@@ -443,22 +442,6 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
|
||||
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
|
||||
}
|
||||
|
||||
/** Removes and returns the ResolveInfo with the specified ComponentName */
|
||||
private ResolveInfo removeResolveInfoWithComponentName(List<ResolveInfo> list,
|
||||
ComponentName cn) {
|
||||
Iterator<ResolveInfo> iter = list.iterator();
|
||||
while (iter.hasNext()) {
|
||||
ResolveInfo rinfo = iter.next();
|
||||
ActivityInfo info = rinfo.activityInfo;
|
||||
ComponentName c = new ComponentName(info.packageName, info.name);
|
||||
if (c.equals(cn)) {
|
||||
iter.remove();
|
||||
return rinfo;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void onPackagesUpdated() {
|
||||
// TODO: this isn't ideal, but we actually need to delay here. This call is triggered
|
||||
// by a broadcast receiver, and in order for it to work correctly, we need to know that
|
||||
@@ -992,10 +975,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
|
||||
private void renderDrawableToBitmap(Drawable d, Bitmap bitmap, int x, int y, int w, int h) {
|
||||
renderDrawableToBitmap(d, bitmap, x, y, w, h, 1f, 0xFFFFFFFF);
|
||||
}
|
||||
private void renderDrawableToBitmap(Drawable d, Bitmap bitmap, int x, int y, int w, int h,
|
||||
float scale) {
|
||||
renderDrawableToBitmap(d, bitmap, x, y, w, h, scale, 0xFFFFFFFF);
|
||||
}
|
||||
|
||||
private void renderDrawableToBitmap(Drawable d, Bitmap bitmap, int x, int y, int w, int h,
|
||||
float scale, int multiplyColor) {
|
||||
if (bitmap != null) {
|
||||
|
||||
Reference in New Issue
Block a user