Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9593e0a0 authored by Romain Guy's avatar Romain Guy
Browse files

Improve the rendering speed of the lock screen by reporting the appropriate...

Improve the rendering speed of the lock screen by reporting the appropriate opacity for the background wallpaper.
parent b7e787fd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -590,9 +590,11 @@ public class LockPatternKeyguardView extends KeyguardViewBase {
     */
    static private class FastBitmapDrawable extends Drawable {
        private Bitmap mBitmap;
        private int mOpacity;

        private FastBitmapDrawable(Bitmap bitmap) {
            mBitmap = bitmap;
            mOpacity = mBitmap.hasAlpha() ? PixelFormat.TRANSLUCENT : PixelFormat.OPAQUE;
        }

        @Override
@@ -606,7 +608,7 @@ public class LockPatternKeyguardView extends KeyguardViewBase {

        @Override
        public int getOpacity() {
            return PixelFormat.TRANSLUCENT;
            return mOpacity;
        }

        @Override