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

Commit e7d7d572 authored by Vadim Tryshev's avatar Vadim Tryshev
Browse files

Setting mBackdropBack to null if artwork isn't available.

Otherwise, it preserves the old image. Later, mBackdropFront will
get this image and try fading from it. This will suddenly flash the
old image.

Bug: 25185253
Change-Id: I702e73684e692712edf48ce31c152c5f5a8bffdb
parent 5781e61c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1946,6 +1946,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,

                    // We are unlocking directly - no animation!
                    mBackdrop.setVisibility(View.GONE);
                    mBackdropBack.setImageDrawable(null);
                } else {
                    mBackdrop.animate()
                            // Never let the alpha become zero - otherwise the RenderNode
@@ -1961,7 +1962,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
                                public void run() {
                                    mBackdrop.setVisibility(View.GONE);
                                    mBackdropFront.animate().cancel();
                                    mBackdropBack.animate().cancel();
                                    mBackdropBack.setImageDrawable(null);
                                    mHandler.post(mHideBackdropFront);
                                }
                            });