Fix issue with where display is removed while creating it in AM and WM
It is possible to a display to be removed while we are in the ctor of ActivityDisplay in AM, but before we can get the Display object in the ctor of DisplayWindowController in WM. This causes us to throw an exception becuase the caller is trying to add a display we can't find in display manager. Unfortunately there isn't a good way to handle this race. To work around it we will now pass the Display object from AM to WM to use and depend on the fact that AM will remove the display shortly after. Change-Id: Ie3f9d86bad67f5a023e3e7dfce5219b98c796864 Fixes: 72893961 Test: go/wm-smoke
Loading
Please register or sign in to comment