Merge "Fix NPE in setTransparentRegion."
This commit is contained in:
committed by
Android (Google) Code Review
commit
f0cabba38b
@ -6919,8 +6919,6 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
(Pair<WindowStateAnimator, Region>) msg.obj;
|
||||
final WindowStateAnimator winAnimator = pair.first;
|
||||
winAnimator.setTransparentRegionHint(pair.second);
|
||||
|
||||
scheduleAnimationLocked();
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -943,6 +943,10 @@ class WindowStateAnimator {
|
||||
}
|
||||
|
||||
void setTransparentRegionHint(final Region region) {
|
||||
if (mSurface == null) {
|
||||
Slog.w(TAG, "setTransparentRegionHint: null mSurface after mHasSurface true");
|
||||
return;
|
||||
}
|
||||
if (SHOW_LIGHT_TRANSACTIONS) Slog.i(TAG,
|
||||
">>> OPEN TRANSACTION setTransparentRegion");
|
||||
Surface.openTransaction();
|
||||
|
Reference in New Issue
Block a user