greenaddress / abcore

ABCore - Android Bitcoin Core
http://abco.re
MIT License
164 stars 55 forks source link

Add option to restart #23.1 #93

Open gwicks56 opened 5 years ago

gwicks56 commented 5 years ago

New code for the auto Daemon restart. It's now a checkbox in Settings -> Daemon Configuration -> Restart on Boot. If checked, upon phone startup the app will start, go to MainActivity, wait 30 seconds and toggle the Daemon switch to ON.

Adds RECEIVE_BOOT_COMPLETED permission.

udiWertheimer commented 5 years ago

Sorry for late review @gwicks56 and thanks for submitting this.

If you're still interested in this pull request, please be aware that it requires a rebase and resolving conflicts before we can proceed.

I'd also recommend naming the setting something like "Auto-start on boot", I think "auto-start" is clearer than "restart", "restart" sounds like we're shutting down the daemon and starting it back up.