Skip to content

Commit

Permalink
Changed: Keep plugin config values when saving even if they wont be u…
Browse files Browse the repository at this point in the history
…sed since stdin scripts may be deleted accidentally
  • Loading branch information
agnostic-apollo committed Feb 20, 2022
1 parent b2cc90b commit 26e1f5e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions app/src/main/java/com/termux/tasker/PluginBundleManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,9 @@ public static Bundle generateBundle(@NonNull final Context context, final String
result.putBoolean(EXTRA_TERMINAL, inTerminal);
result.putBoolean(EXTRA_WAIT_FOR_RESULT, waitForResult);

if (!inTerminal) {
result.putString(EXTRA_STDIN, stdin);
result.putString(EXTRA_BACKGROUND_CUSTOM_LOG_LEVEL, backgroundCustomLogLevel);
} else {
result.putString(EXTRA_SESSION_ACTION, sessionAction);
}
result.putString(EXTRA_STDIN, stdin);
result.putString(EXTRA_BACKGROUND_CUSTOM_LOG_LEVEL, backgroundCustomLogLevel);
result.putString(EXTRA_SESSION_ACTION, sessionAction);

Integer versionCode = PackageUtils.getVersionCodeForPackage(context);
if (versionCode == null) {
Expand Down

0 comments on commit 26e1f5e

Please sign in to comment.