SDL2 Java implementation

This commit is contained in:
Sergii Pylypenko
2022-01-03 02:12:10 +02:00
parent ef8b1d2c7d
commit 094d04a4c2
15 changed files with 253 additions and 109 deletions

View File

@@ -177,7 +177,6 @@ class DataDownloader extends Thread
{
Parent = _Parent;
Status = new StatusWriter( _Status, _Parent );
//Status.setText( "Connecting to " + Globals.DataDownloadUrl );
outFilesDir = Globals.DataDir;
DownloadComplete = false;
this.start();
@@ -193,7 +192,8 @@ class DataDownloader extends Thread
@Override
public void run()
{
Parent.getVideoLayout().setOnKeyListener(new BackKeyListener(Parent));
if (Parent.getVideoLayout() != null)
Parent.getVideoLayout().setOnKeyListener(new BackKeyListener(Parent));
String [] downloadFiles = Globals.DataDownloadUrl;
int total = 0;
@@ -235,7 +235,8 @@ class DataDownloader extends Thread
}
}
DownloadComplete = true;
Parent.getVideoLayout().setOnKeyListener(null);
if (Parent.getVideoLayout() != null)
Parent.getVideoLayout().setOnKeyListener(null);
initParent();
}
@@ -855,7 +856,7 @@ class DataDownloader extends Thread
public MainActivity Parent;
public void run()
{
Parent.initSDL();
Parent.downloadFinishedInitSDL();
}
}
Callback cb = new Callback();