Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue with [Android] restartApp() throwing exception w/ release build #861

Merged
merged 5 commits into from
Jun 1, 2017

Conversation

max-mironov
Copy link
Contributor

@@ -108,7 +108,9 @@ private void setJSBundle(ReactInstanceManager instanceManager, String latestJSBu

Method[] methods = jsBundleLoaderClass.getDeclaredMethods();
for (Method method : methods) {
if (method.getName().equals("createFileLoader")) {
String createFileLoaderMethodName = latestJSBundleFile.toLowerCase().startsWith("assets://")
? "createAssetLoader" : "createFileLoader";
Copy link
Contributor

@AndrewJack AndrewJack May 30, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid assigning inside the loop.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AndrewJack - thanks for pointing at this, added commit to fix this.

@sergey-akhalkov sergey-akhalkov merged commit b8bd4a0 into microsoft:master Jun 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants