Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Clean up build flavor usage and fix JNI native signature (#1436)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluemarvin authored and MortimerGoro committed Jul 22, 2019
1 parent 6ccab7a commit c81f61c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ private void initialize(Context aContext) {

mFoveatedAppRadio = findViewById(R.id.foveated_app_radio);
mFoveatedWebVRRadio = findViewById(R.id.foveated_webvr_radio);
if (BuildConfig.FLAVOR_platform == "oculusvr" ||
BuildConfig.FLAVOR_platform == "wavevr") {
if (DeviceType.isOculusBuild() || DeviceType.isWaveBuild()) {
mFoveatedAppRadio.setVisibility(View.VISIBLE);
// Uncomment this when Foveated Rendering for WebVR makes more sense
// mFoveatedWebVRRadio.setVisibility(View.VISIBLE);
Expand Down Expand Up @@ -316,7 +315,7 @@ private void setFoveatedLevel(RadioGroupSetting aSetting, int checkedId, boolean
if (doApply) {
mWidgetManager.updateFoveatedLevel();
// "WaveVR WVR_RenderFoveation(false) doesn't work properly, we need to restart."
if (level == 0 && BuildConfig.FLAVOR_platform == "wavevr") {
if (level == 0 && DeviceType.isWaveBuild()) {
showRestartDialog();
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/cpp/BrowserWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,7 @@ JNI_METHOD(void, runCallbackNative)
}

JNI_METHOD(void, setCPULevelNative)
(JNIEnv*, jobject, int aCPULevel) {
(JNIEnv*, jobject, jint aCPULevel) {
crow::BrowserWorld::Instance().SetCPULevel(static_cast<crow::device::CPULevel>(aCPULevel));
}

Expand Down

0 comments on commit c81f61c

Please sign in to comment.