Skip to content

Commit

Permalink
Don't mess with NSLocale.currentLocale
Browse files Browse the repository at this point in the history
It might not reflect the user's actual locale in `+load`, so let's do
the set up in `+initialize`.
  • Loading branch information
neonichu committed Dec 10, 2014
1 parent 07a0d3a commit 4211046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/MRNavigationBarProgressView.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ @implementation MRNavigationBarProgressView

static NSNumberFormatter *progressNumberFormatter;

+ (void)load {
+ (void)initialize {
NSNumberFormatter *numberFormatter = [NSNumberFormatter new];
numberFormatter.numberStyle = NSNumberFormatterPercentStyle;
numberFormatter.locale = NSLocale.currentLocale;
Expand Down

0 comments on commit 4211046

Please sign in to comment.