mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-27 05:11:30 +00:00
Make sure service also runs in background after first app start.
Previously, it would be stopped when exiting the activity due to no call to `startService()`.
This commit is contained in:
parent
35d80844fc
commit
a1ddfbb2db
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ public class SyncthingActivity extends ActionBarActivity implements ServiceConne
|
|||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
startService(new Intent(this, SyncthingService.class));
|
||||
bindService(new Intent(this, SyncthingService.class),
|
||||
this, Context.BIND_AUTO_CREATE);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue