Merge "Fixing crash when fetching stack bounds."
This commit is contained in:
@@ -107,7 +107,9 @@ public class PipMotionHelper {
|
||||
cancelAnimations();
|
||||
try {
|
||||
StackInfo stackInfo = mActivityManager.getStackInfo(PINNED_STACK_ID);
|
||||
mBounds.set(stackInfo.bounds);
|
||||
if (stackInfo != null) {
|
||||
mBounds.set(stackInfo.bounds);
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Log.w(TAG, "Failed to get pinned stack bounds");
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@ public class PipManager {
|
||||
private List<MediaListener> mMediaListeners = new ArrayList<>();
|
||||
private Rect mCurrentPipBounds;
|
||||
private Rect mPipBounds;
|
||||
private Rect mDefaultPipBounds;
|
||||
private Rect mDefaultPipBounds = new Rect();
|
||||
private Rect mSettingsPipBounds;
|
||||
private Rect mMenuModePipBounds;
|
||||
private Rect mRecentsPipBounds;
|
||||
|
||||
Reference in New Issue
Block a user