mirror of
https://github.com/overte-org/overte.git
synced 2025-08-12 15:14:13 +02:00
Fix NullPointerException introduced with the workaround
This commit is contained in:
parent
b2fe5a6d63
commit
459991988c
1 changed files with 22 additions and 18 deletions
|
@ -170,7 +170,9 @@ public class InterfaceActivity extends QtActivity {
|
|||
|
||||
private void surfacesWorkaround() {
|
||||
FrameLayout fl = findViewById(android.R.id.content);
|
||||
if (fl.getChildCount() > 0) {
|
||||
QtLayout qtLayout = (QtLayout) fl.getChildAt(0);
|
||||
if (qtLayout.getChildCount() > 1) {
|
||||
QtSurface s1 = (QtSurface) qtLayout.getChildAt(0);
|
||||
QtSurface s2 = (QtSurface) qtLayout.getChildAt(1);
|
||||
Integer subLayer1 = 0;
|
||||
|
@ -191,6 +193,8 @@ public class InterfaceActivity extends QtActivity {
|
|||
Log.e(TAG, "Workaround failed");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void openUrlInAndroidWebView(String urlString) {
|
||||
Log.d("openUrl", "Received in open " + urlString);
|
||||
|
|
Loading…
Reference in a new issue