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

Commit 54f428a6 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick Committed by Android Git Automerger
Browse files

am bdb7aee0: Merge "Fix for crash when setting live wallpaper."

* commit 'bdb7aee0':
  Fix for crash when setting live wallpaper.
parents 47075079 bdb7aee0
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -514,8 +514,11 @@ public abstract class WallpaperService extends Service {
                        mLayout.windowAnimations =
                                com.android.internal.R.style.Animation_Wallpaper;
                        mInputChannel = new InputChannel();
                        mSession.add(mWindow, mLayout, View.VISIBLE, mContentInsets,
                                mInputChannel);
                        if (mSession.add(mWindow, mLayout, View.VISIBLE, mContentInsets,
                                mInputChannel) < 0) {
                            Log.w(TAG, "Failed to add window while updating wallpaper surface.");
                            return;
                        }
                        mCreated = true;

                        InputQueue.registerInputChannel(mInputChannel, mInputHandler,