diff --git a/packages/SystemUI/src/com/android/systemui/qs/PagedTileLayout.java b/packages/SystemUI/src/com/android/systemui/qs/PagedTileLayout.java index 7e5ff8a955623..1784f73e1f531 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/PagedTileLayout.java +++ b/packages/SystemUI/src/com/android/systemui/qs/PagedTileLayout.java @@ -112,6 +112,16 @@ public class PagedTileLayout extends ViewPager implements QSTileLayout { @Override protected void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); + // Pass configuration change to non-attached pages as well. Some config changes will cause + // QS to recreate itself (as determined in FragmentHostManager), but in order to minimize + // those, make sure that all get passed to all pages. + int numPages = mPages.size(); + for (int i = 0; i < numPages; i++) { + View page = mPages.get(i); + if (page.getParent() == null) { + page.dispatchConfigurationChanged(newConfig); + } + } if (mLayoutOrientation != newConfig.orientation) { mLayoutOrientation = newConfig.orientation; mDistributeTiles = true;