hmmmm
This commit is contained in:
parent
e7e6df937d
commit
36ce421ebc
|
@ -101,7 +101,6 @@
|
|||
<service
|
||||
android:name="com.tungsten.fclcore.download.ProcessService"
|
||||
android:process=":processService"
|
||||
android:multiprocess="true"
|
||||
android:enabled="true"/>
|
||||
<provider
|
||||
android:name="androidx.core.content.FileProvider"
|
||||
|
|
|
@ -68,7 +68,7 @@ public class ProcessService extends Service {
|
|||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
onDestroy();
|
||||
stopSelf();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -149,14 +149,12 @@ public class ForgeNewInstallTask extends Task<Version> {
|
|||
server1.stop();
|
||||
latch.countDown();
|
||||
});
|
||||
Schedulers.androidUIThread().execute(() -> {
|
||||
Intent service = new Intent(FCLPath.CONTEXT, ProcessService.class);
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putStringArray("command", command.toArray(new String[0]));
|
||||
service.putExtras(bundle);
|
||||
FCLPath.CONTEXT.startService(service);
|
||||
server.start();
|
||||
});
|
||||
latch.await();
|
||||
exitCode = tryCast(((String) server.getResult()).replaceAll(" ", ""), Integer.class).orElse(0);
|
||||
if (exitCode != 0)
|
||||
|
|
Loading…
Reference in New Issue