mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Don’t create dummy app info.
Bug: 24539514 Change-Id: I5d14a4d9993e072451f8e7ed9a4cea219ae5d246
This commit is contained in:
@@ -25,6 +25,8 @@ import android.content.res.TypedArray;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Region;
|
||||
import android.graphics.drawable.BitmapDrawable;
|
||||
import android.graphics.drawable.ColorDrawable;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Build;
|
||||
import android.util.AttributeSet;
|
||||
@@ -187,6 +189,15 @@ public class BubbleTextView extends TextView
|
||||
verifyHighRes();
|
||||
}
|
||||
|
||||
/**
|
||||
* Used for measurement only, sets some dummy values on this view.
|
||||
*/
|
||||
public void applyDummyInfo() {
|
||||
ColorDrawable d = new ColorDrawable();
|
||||
setIcon(mLauncher.resizeIconDrawable(d), mIconSize);
|
||||
setText("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Overrides the default long press timeout.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user