am ea599dff: Don\'t crash when recovering from WM death

* commit 'ea599dfff03b45903dae3288274c31cb24fd483f':
  Don't crash when recovering from WM death
This commit is contained in:
Jesse Hall 2012-08-14 15:49:29 -07:00 committed by Android Git Automerger
commit d007dc12c6

View File

@ -142,6 +142,8 @@ void SurfaceFlinger::binderDied(const wp<IBinder>& who)
Vector<ComposerState> state;
Vector<DisplayState> displays;
DisplayState d;
d.what = DisplayState::eTransformChanged;
d.token = mDefaultDisplays[DisplayDevice::DISPLAY_ID_MAIN];
d.orientation = DisplayState::eOrientationDefault;
displays.add(d);
setTransactionState(state, displays, 0);