Merge "Fix NPE in setTransparentRegion."

This commit is contained in:
Craig Mautner
2012-04-10 14:33:07 -07:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 2 deletions

View File

@ -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;
}

View File

@ -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();