Merge "Make sure updateSurfaceSize gets applied after changing config"
This commit is contained in:
committed by
Android (Google) Code Review
commit
4eac4338de
@@ -714,10 +714,11 @@ public class TaskStack extends WindowContainer<Task> implements
|
||||
@Override
|
||||
public void onConfigurationChanged(Configuration newParentConfig) {
|
||||
final int prevWindowingMode = getWindowingMode();
|
||||
super.onConfigurationChanged(newParentConfig);
|
||||
|
||||
// Only need to update surface size here since the super method will handle updating
|
||||
// surface position.
|
||||
updateSurfaceSize(getPendingTransaction());
|
||||
super.onConfigurationChanged(newParentConfig);
|
||||
final int windowingMode = getWindowingMode();
|
||||
|
||||
if (mDisplayContent == null || prevWindowingMode == windowingMode) {
|
||||
|
||||
Reference in New Issue
Block a user