mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-22 23:59:54 +01:00
Each task that runs on a separate thread should have its own method.
This commit is contained in:
@@ -95,7 +95,12 @@ public class BriarActivity extends RoboFragmentActivity {
|
|||||||
if(LOG.isLoggable(INFO))
|
if(LOG.isLoggable(INFO))
|
||||||
LOG.info("Interrupted while waiting for service");
|
LOG.info("Interrupted while waiting for service");
|
||||||
}
|
}
|
||||||
// Finish the activity and kill the JVM
|
finishAndExit();
|
||||||
|
}
|
||||||
|
}.start();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void finishAndExit() {
|
||||||
runOnUiThread(new Runnable() {
|
runOnUiThread(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
finish();
|
finish();
|
||||||
@@ -104,8 +109,6 @@ public class BriarActivity extends RoboFragmentActivity {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}.start();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void runOnDbThread(final Runnable task) {
|
protected void runOnDbThread(final Runnable task) {
|
||||||
dbUiExecutor.execute(new Runnable() {
|
dbUiExecutor.execute(new Runnable() {
|
||||||
|
|||||||
Reference in New Issue
Block a user