Fixed
Status Update
Comments
[Deleted User] <[Deleted User]> #2
We use build flavours heavily with a lot of common code. The refactoring support in AS is really good but it continually catches us out when it doesn't work across all flavours in a project. It's a big gap for serious product development.
[Deleted User] <[Deleted User]> #3
We at my company need this same feature. We have a lot of white labels and need refactor the same class across flavours. :(
me...@gmail.com <me...@gmail.com> #4
I need this feature too...
Description
The following test passes on API levels <=23, but fails on Nougat (24 or 25).
DecimalFormatSymbols dfs = new DecimalFormatSymbols();
dfs.setCurrencySymbol("€");
dfs.setDecimalSeparator(',');
dfs.setMonetaryDecimalSeparator(',');
dfs.setGroupingSeparator(' ');
dfs.setInternationalCurrencySymbol("EUR");
DecimalFormat format = new java.text.DecimalFormat(pattern, dfs);
String formatted = format.format(1234.56);
assertEquals("1 234,56€", formatted);
The failure is identical with both the java.text.* and android.icu.text.* versions of DecimalFormat.
The attached project contains a small repro in the form of an instrumentation test case.