Loading tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderAction.java +10 −16 Original line number Diff line number Diff line Loading @@ -382,7 +382,6 @@ public abstract class RenderAction<T extends RenderParams> extends FrameworkReso config.orientation = Configuration.ORIENTATION_UNDEFINED; } try { ScreenRound roundness = hardwareConfig.getScreenRoundness(); if (roundness != null) { switch (roundness) { Loading @@ -395,11 +394,6 @@ public abstract class RenderAction<T extends RenderParams> extends FrameworkReso } else { config.screenLayout |= Configuration.SCREENLAYOUT_ROUND_UNDEFINED; } } catch (NoSuchMethodError ignored) { // getScreenRoundness was added in later stages of API 15. So, it's not present on some // preview releases of API 15. // TODO: Remove the try catch around Oct 2015. } String locale = getParams().getLocale(); if (locale != null && !locale.isEmpty()) config.locale = new Locale(locale); Loading Loading
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderAction.java +10 −16 Original line number Diff line number Diff line Loading @@ -382,7 +382,6 @@ public abstract class RenderAction<T extends RenderParams> extends FrameworkReso config.orientation = Configuration.ORIENTATION_UNDEFINED; } try { ScreenRound roundness = hardwareConfig.getScreenRoundness(); if (roundness != null) { switch (roundness) { Loading @@ -395,11 +394,6 @@ public abstract class RenderAction<T extends RenderParams> extends FrameworkReso } else { config.screenLayout |= Configuration.SCREENLAYOUT_ROUND_UNDEFINED; } } catch (NoSuchMethodError ignored) { // getScreenRoundness was added in later stages of API 15. So, it's not present on some // preview releases of API 15. // TODO: Remove the try catch around Oct 2015. } String locale = getParams().getLocale(); if (locale != null && !locale.isEmpty()) config.locale = new Locale(locale); Loading