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

Commit 028a613b 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

* commit '996c4090':
  Add a null check to prevent NPE

Change-Id: I726898bc8d1539906d0363d447050c82574ba5ef
parents f047cf91 996c4090
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);
        }