Adding implementation of InstantAppResolver for quickstep
> Badging instant apps properly in recents > Routing drawable creation using Drawable factory Bug: 31282621 Change-Id: Ice1cdd3e9b821bebdebebbdc5cba4a907ffc21f8
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package com.android.launcher3.graphics;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.pm.ActivityInfo;
|
||||
import android.content.res.Resources;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.Canvas;
|
||||
@@ -70,6 +71,10 @@ public class DrawableFactory {
|
||||
return drawable;
|
||||
}
|
||||
|
||||
public FastBitmapDrawable newIcon(BitmapInfo info, ActivityInfo target) {
|
||||
return new FastBitmapDrawable(info);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a FastBitmapDrawable with the icon.
|
||||
*/
|
||||
@@ -80,7 +85,6 @@ public class DrawableFactory {
|
||||
return new PreloadIconDrawable(info, mPreloadProgressPath, context);
|
||||
}
|
||||
|
||||
|
||||
protected Path getPreloadProgressPath(Context context) {
|
||||
if (Utilities.ATLEAST_OREO) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user