mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Fixing issue with customize page holographic previews not showing.
- Adding temporary workaround for bad holographic default widget previews. Change-Id: I261045beac3791111f928511435e17e320f2d4a7
This commit is contained in:
@@ -25,6 +25,8 @@ import android.graphics.Bitmap;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.PorterDuffXfermode;
|
||||
import android.graphics.PorterDuff.Mode;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Handler;
|
||||
import android.os.HandlerThread;
|
||||
@@ -78,6 +80,8 @@ public class PagedViewWidget extends LinearLayout {
|
||||
widget.mPreview.setAlpha(255);
|
||||
widget.mPreview.draw(widget.mHolographicOutlineCanvas);
|
||||
widget.mPreview.setAlpha(prevAlpha);
|
||||
// Temporary workaround to make the default widget outlines visible
|
||||
widget.mHolographicOutlineCanvas.drawColor(Color.argb(156, 0, 0, 0), Mode.SRC_OVER);
|
||||
widget.mHolographicOutlineCanvas.restore();
|
||||
|
||||
sHolographicOutlineHelper.applyThickExpensiveOutlineWithBlur(outline,
|
||||
@@ -120,14 +124,12 @@ public class PagedViewWidget extends LinearLayout {
|
||||
}
|
||||
|
||||
private void queueHolographicOutlineCreation() {
|
||||
/* Temporarily disabling holographic outline creation.
|
||||
// Generate the outline in the background
|
||||
if (mHolographicOutline == null) {
|
||||
Message m = sWorker.obtainMessage(MESSAGE_CREATE_HOLOGRAPHIC_OUTLINE);
|
||||
m.obj = this;
|
||||
sWorker.sendMessage(m);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
public void applyFromAppWidgetProviderInfo(AppWidgetProviderInfo info,
|
||||
|
||||
Reference in New Issue
Block a user