From ea599dfff03b45903dae3288274c31cb24fd483f Mon Sep 17 00:00:00 2001 From: Jesse Hall Date: Mon, 13 Aug 2012 14:47:01 -0700 Subject: [PATCH] Don't crash when recovering from WM death Bug: 6956162 Change-Id: I27244b960c77187b4c4cd7297989c4c872e94a3a --- services/surfaceflinger/SurfaceFlinger.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index fbf287303..3a802ff80 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -142,6 +142,8 @@ void SurfaceFlinger::binderDied(const wp& who) Vector state; Vector 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);