mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 23:03:12 +02:00
repairs to hifi url handling
This commit is contained in:
parent
dd4f4f0993
commit
dc866b62e4
1 changed files with 14 additions and 0 deletions
|
@ -11,8 +11,11 @@
|
||||||
|
|
||||||
package io.highfidelity.gvrinterface;
|
package io.highfidelity.gvrinterface;
|
||||||
|
|
||||||
|
import android.content.Intent;
|
||||||
|
import android.net.Uri;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.WindowManager;
|
import android.view.WindowManager;
|
||||||
|
import android.util.Log;
|
||||||
import org.qtproject.qt5.android.bindings.QtActivity;
|
import org.qtproject.qt5.android.bindings.QtActivity;
|
||||||
|
|
||||||
public class InterfaceActivity extends QtActivity {
|
public class InterfaceActivity extends QtActivity {
|
||||||
|
@ -21,5 +24,16 @@ public class InterfaceActivity extends QtActivity {
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
||||||
|
|
||||||
|
// Get the intent that started this activity in case we have a hifi:// URL to parse
|
||||||
|
Intent intent = getIntent();
|
||||||
|
if (intent.getAction() == Intent.ACTION_VIEW) {
|
||||||
|
Uri data = intent.getData();
|
||||||
|
|
||||||
|
if (data.getScheme().equals("hifi")) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue