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

Commit b46aa4a3 authored by Tony Wickham's avatar Tony Wickham
Browse files

[automerger] Handle null background or foreground when dragging adaptive icons am: 746c6c36

Change-Id: I3e254a7109e114072cf003ef5c2a4798604d1d1f
parents 8a1702ce 746c6c36
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -242,8 +242,14 @@ public class DragView extends View {
                            (int) (-bounds.height() * AdaptiveIconDrawable.getExtraInsetFraction())
                    );
                    mBgSpringDrawable = adaptiveIcon.getBackground();
                    if (mBgSpringDrawable == null) {
                        mBgSpringDrawable = new ColorDrawable(Color.TRANSPARENT);
                    }
                    mBgSpringDrawable.setBounds(bounds);
                    mFgSpringDrawable = adaptiveIcon.getForeground();
                    if (mFgSpringDrawable == null) {
                        mFgSpringDrawable = new ColorDrawable(Color.TRANSPARENT);
                    }
                    mFgSpringDrawable.setBounds(bounds);

                    new Handler(Looper.getMainLooper()).post(new Runnable() {