Merge "Settings: PreviewPagerAdapter: copy the full theme" am: b6bbbc91ca am: aaf9fdc5cf am: bffc5230f7

am: cf5053a31f

Change-Id: I4d6ad57c0d469b445b5b1e8311ea5eda73f0cc5d
This commit is contained in:
Anas Karbila
2017-04-20 23:28:00 +00:00
committed by android-build-merger

View File

@@ -74,7 +74,7 @@ public class PreviewPagerAdapter extends PagerAdapter {
// Create a new configuration for the specified value. It won't
// have any theme set, so manually apply the current theme.
final Context configContext = context.createConfigurationContext(configurations[j]);
configContext.setTheme(context.getThemeResId());
configContext.getTheme().setTo(context.getTheme());
final LayoutInflater configInflater = LayoutInflater.from(configContext);
final ViewStub sampleViewStub = new ViewStub(configContext);