mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 02:35:19 +08:00
Added: Log intents received by and
This commit is contained in:
@@ -63,6 +63,8 @@ public class RunCommandService extends Service {
|
|||||||
// Run again in case service is already started and onCreate() is not called
|
// Run again in case service is already started and onCreate() is not called
|
||||||
runStartForeground();
|
runStartForeground();
|
||||||
|
|
||||||
|
Logger.logVerboseExtended(LOG_TAG, "Intent Received:\n" + IntentUtils.getIntentString(intent));
|
||||||
|
|
||||||
ExecutionCommand executionCommand = new ExecutionCommand();
|
ExecutionCommand executionCommand = new ExecutionCommand();
|
||||||
executionCommand.pluginAPIHelp = this.getString(R.string.error_run_command_service_api_help, RUN_COMMAND_SERVICE.RUN_COMMAND_API_HELP_URL);
|
executionCommand.pluginAPIHelp = this.getString(R.string.error_run_command_service_api_help, RUN_COMMAND_SERVICE.RUN_COMMAND_API_HELP_URL);
|
||||||
|
|
||||||
|
@@ -136,7 +136,11 @@ public final class TermuxService extends Service implements AppShell.AppShellCli
|
|||||||
// Run again in case service is already started and onCreate() is not called
|
// Run again in case service is already started and onCreate() is not called
|
||||||
runStartForeground();
|
runStartForeground();
|
||||||
|
|
||||||
String action = intent.getAction();
|
String action = null;
|
||||||
|
if (intent != null) {
|
||||||
|
Logger.logVerboseExtended(LOG_TAG, "Intent Received:\n" + IntentUtils.getIntentString(intent));
|
||||||
|
action = intent.getAction();
|
||||||
|
}
|
||||||
|
|
||||||
if (action != null) {
|
if (action != null) {
|
||||||
switch (action) {
|
switch (action) {
|
||||||
|
Reference in New Issue
Block a user