Commit 2e0fcf3d authored by Tibor Goldschwendt's avatar Tibor Goldschwendt Committed by Commit Bot

[vr] Register native JNI functions before calling them

Bug: 873826
Change-Id: I9381fb88efd83933e30d5c14050f50500f241469
Reviewed-on: https://chromium-review.googlesource.com/1175084Reviewed-by: default avatarMichael Thiessen <mthiesse@chromium.org>
Reviewed-by: default avatarTed Choc <tedchoc@chromium.org>
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#583275}
parent 2ebb67fe
......@@ -1372,10 +1372,10 @@ public abstract class ChromeActivity extends AsyncInitializationActivity
maybeRemoveWindowBackground();
DownloadManagerService.getDownloadManagerService().onActivityLaunched();
VrModuleProvider.getDelegate().onNativeLibraryAvailable();
if (getSavedInstanceState() == null && getIntent() != null) {
VrModuleProvider.getDelegate().onNewIntentWithNative(this, getIntent());
}
VrModuleProvider.getDelegate().onNativeLibraryAvailable();
super.finishNativeInitialization();
ViewGroup coordinator = findViewById(R.id.coordinator);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment