Merge "Settings: PreviewPagerAdapter: copy the full theme"

am: b6bbbc91ca

Change-Id: I083114a9c4658e8c02be0445bc0b54ba3b225217
This commit is contained in:
Anas Karbila
2017-04-20 23:19:55 +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 // Create a new configuration for the specified value. It won't
// have any theme set, so manually apply the current theme. // have any theme set, so manually apply the current theme.
final Context configContext = context.createConfigurationContext(configurations[j]); final Context configContext = context.createConfigurationContext(configurations[j]);
configContext.setTheme(context.getThemeResId()); configContext.getTheme().setTo(context.getTheme());
final LayoutInflater configInflater = LayoutInflater.from(configContext); final LayoutInflater configInflater = LayoutInflater.from(configContext);
final ViewStub sampleViewStub = new ViewStub(configContext); final ViewStub sampleViewStub = new ViewStub(configContext);