Loading src/com/android/settings/PreviewPagerAdapter.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -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); Loading Loading
src/com/android/settings/PreviewPagerAdapter.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -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); Loading