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

Commit 0b0fdacc authored by Sid Soundararajan's avatar Sid Soundararajan Committed by android-build-merger
Browse files

Merge "Add a null check to prevent NPE" into nyc-dev am: 996c4090

am: 028a613b

* commit '028a613b':
  Add a null check to prevent NPE

Change-Id: I69f8cab9cb914283c7bed0f96933be1a5e776181
parents 87a1eba3 028a613b
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -121,11 +121,13 @@ public class RecentsTvTransitionHelper {
        }
        try {
            Rect taskRect = taskView.getFocusedThumbnailRect();
            if (taskRect != null) {
                Bitmap thumbnail = Bitmap.createScaledBitmap(task.thumbnail, taskRect.width(),
                        taskRect.height(), false);
                WindowManagerGlobal.getWindowManagerService()
                        .overridePendingAppTransitionAspectScaledThumb(thumbnail, taskRect.left,
                                taskRect.top, taskRect.width(), taskRect.height(), callback, true);
            }
        } catch (RemoteException e) {
            Log.w(TAG, "Failed to override transition: " + e);
        }