From cb8b0225cadaa8f51f32065ee914cb7ce0f38d1e Mon Sep 17 00:00:00 2001 From: agnostic-apollo Date: Sun, 6 Jun 2021 06:15:47 +0500 Subject: [PATCH] Add pluginIntent field to ExecutionCommand --- .../java/com/termux/shared/models/ExecutionCommand.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/termux-shared/src/main/java/com/termux/shared/models/ExecutionCommand.java b/termux-shared/src/main/java/com/termux/shared/models/ExecutionCommand.java index 76e58532..5ee3948f 100644 --- a/termux-shared/src/main/java/com/termux/shared/models/ExecutionCommand.java +++ b/termux-shared/src/main/java/com/termux/shared/models/ExecutionCommand.java @@ -2,6 +2,7 @@ package com.termux.shared.models; import android.app.Activity; import android.app.PendingIntent; +import android.content.Intent; import android.net.Uri; import androidx.annotation.NonNull; @@ -106,9 +107,10 @@ public class ExecutionCommand { /** Defines if {@link ExecutionCommand} was started because of an external plugin request - * like {@link TERMUX_SERVICE#ACTION_SERVICE_EXECUTE} intent or from within Termux app itself. - */ + * like {@link TERMUX_SERVICE#ACTION_SERVICE_EXECUTE} intent or from within Termux app itself. */ public boolean isPluginExecutionCommand; + /** Defines the {@link Intent} received from the external plugin which started the {@link ExecutionCommand}. */ + public Intent pluginIntent; /** Defines {@link PendingIntent} that should be sent if an external plugin requested the execution. */ public PendingIntent pluginPendingIntent;