Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@GaryQian
Copy link
Contributor

Locale.getScript() is introduced in API 21. Crashes on lower API devices without this check.

@GaryQian GaryQian merged commit 09dcc3d into flutter:master Oct 18, 2018
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 18, 2018
flutter/engine@104f057...3860a43

git log 104f057..3860a43 --no-merges --oneline
3860a43 Re-revert wrong line_heights implementation (flutter/engine#6598)
09dcc3d Gate locale.getScript() behind version check for android  API < 21 (flutter/engine#6592)
c176244 Provide an estimate of EngineLayer memory usage to the Dart GC (flutter/engine#6589)
2511dec Roll src/third_party/skia a64e4eeaa357..b4ae49937d83 (14 commits) (flutter/engine#6590)
0887dd5 Roll buildroot to 4ee3892 (flutter/engine#6586)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
yjbanov pushed a commit to flutter/flutter that referenced this pull request Oct 18, 2018
flutter/engine@104f057...3860a43

git log 104f057..3860a43 --no-merges --oneline
3860a43 Re-revert wrong line_heights implementation (flutter/engine#6598)
09dcc3d Gate locale.getScript() behind version check for android  API < 21 (flutter/engine#6592)
c176244 Provide an estimate of EngineLayer memory usage to the Dart GC (flutter/engine#6589)
2511dec Roll src/third_party/skia a64e4eeaa357..b4ae49937d83 (14 commits) (flutter/engine#6590)
0887dd5 Roll buildroot to 4ee3892 (flutter/engine#6586)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
@miDeb
Copy link

miDeb commented Oct 19, 2018

You're still calling Locale.getScript(without a check)!
The List data is filled correctly, but later(

mFlutterLocalizationChannel.invokeMethod("setLocale", Arrays.asList(locale.getLanguage(), locale.getCountry(), locale.getScript(), locale.getVariant()));
)
data is not used, instead a new List is created.
And in the creation of the new list, there is still a call to Locale.getScript.

@GaryQian
Copy link
Contributor Author

Oh yeah, you are right, I'll get that fixed! Thanks!

@GaryQian
Copy link
Contributor Author

#6619

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants