mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-25 22:01:16 +00:00
Part of fix for #18 on Gingerbread - call Looper.prepare() to set up the thread.
This commit is contained in:
parent
fac292d2f3
commit
726f62061d
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,7 @@ import android.content.Context;
|
|||
import android.content.Intent;
|
||||
import android.os.AsyncTask;
|
||||
import android.os.IBinder;
|
||||
import android.os.Looper;
|
||||
import android.support.v4.app.NotificationCompat;
|
||||
import android.util.Log;
|
||||
|
||||
|
@ -292,6 +293,7 @@ public class SyncthingService extends Service {
|
|||
new Thread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
Looper.prepare();
|
||||
if (isFirstStart(SyncthingService.this)) {
|
||||
Log.i(TAG, "App started for the first time. " +
|
||||
"Copying default config, keys will be generated automatically");
|
||||
|
|
Loading…
Reference in a new issue