1
0
mirror of http://galexander.org/git/simplesshd.git synced 2024-11-15 19:48:56 +00:00
simplesshd/app/src/main/java/org/galexander/sshd/BootReceiver.java

16 lines
376 B
Java
Raw Normal View History

2014-12-18 04:18:27 +00:00
package org.galexander.sshd;
import android.content.BroadcastReceiver;
import android.content.Intent;
import android.content.Context;
public class BootReceiver extends BroadcastReceiver {
public void onReceive(Context context, Intent intent) {
Prefs.init(context);
if (Prefs.get_onboot()) {
SimpleSSHDService.do_startService(context,
/*stop=*/false);
2014-12-18 04:18:27 +00:00
}
}
}