mirror of
http://galexander.org/git/simplesshd.git
synced 2025-07-01 00:42:32 +00:00

SimpleSSHDService.do_startService() so they can be forced through startForegroundService or what-have-you.
12 lines
327 B
Java
12 lines
327 B
Java
package org.galexander.sshd;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Intent;
|
|
import android.content.Context;
|
|
|
|
public class StopReceiver extends BroadcastReceiver {
|
|
public void onReceive(Context context, Intent intent) {
|
|
SimpleSSHDService.do_startService(context, /*stop=*/true);
|
|
}
|
|
}
|