diff --git a/Manual.md b/Manual.md index 563192d..7da0a1c 100644 --- a/Manual.md +++ b/Manual.md @@ -261,32 +261,32 @@ All these functions get the Activity id and the View id as the first and second -#### tgc_actvivity_tid="tid" +#### tgc_activity_tid="tid" Key for the `tg_activity_new` options array. The value is a number. Specify a Task id here if you want Activities to launch over each other in the same Task. -#### tgc_actvivity_dialog="dialog" +#### tgc_activity_dialog="dialog" Key for the `tg_activity_new` options array. The value is a boolean. Set this to make the Activity a dialog. -#### tgc_actvivity_canceloutside="canceloutside" +#### tgc_activity_canceloutside="canceloutside" Key for the `tg_activity_new` options array. The value is a boolean. Set this to false if you want your dialog to not be dismissed when the user taps on something else. -#### tgc_actvivity_pip="pip" +#### tgc_activity_pip="pip" Key for the `tg_activity_new` options array. The value is a boolean. Set this to let the Activity start in picture-in-picture mode. -#### tgc_actvivity_lockscreen="lockscreen" +#### tgc_activity_lockscreen="lockscreen" Key for the `tg_activity_new` options array. The value is a boolean. Set this to make the Activity stay visible and interactable on the lockscreen. Make sure your interface is secure in this case, to not allow arbitrary command execution or file I/O. -#### tgc_actvivity_overlay="overlay" +#### tgc_activity_overlay="overlay" Key for the `tg_activity_new` options array. The value is a boolean. This launches the Activity as an overlay over everything else, similar to picture-in-picture mode, but you can interact with all Views. -#### tgc_actvivity_intercept="intercept" +#### tgc_activity_intercept="intercept" Key for the `tg_activity_new` options array. The value is a boolean. This option makes the back button send an event instead of finishing the Activity. diff --git a/TUTORIAL.md b/TUTORIAL.md index c8c60a9..8c34115 100644 --- a/TUTORIAL.md +++ b/TUTORIAL.md @@ -152,7 +152,7 @@ set -u banner="iVBORw0KGgoAAAANSUhEUgAAAUAAAAC0CAIAAABqhmJGAAAABmJLR0QA/wD/AP+gvaeTAAANFklEQVR4nO3dfVBU1f/A8cuTSAyLGfGQBCiV8aRAaaWkaTQ6MTWEMEQNS/Rk4CRTlg9NONnYgA0zBCkjRko2wjTFGEUGhKNDEaImZtCgxjPKSAIKCyiL8P2D3+92Zhd2F+Rp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MmT/ShNn0gksSVJGRsY///wjF319fU+fPj3amcff3/+PP/4IDg6Wa8rKysTNX43dDz/8IF4Gz58/v6SkRPupekdHx6ysLI29b3RLS0tzc3OTix0dHRs3btRo09DQsHXrVrEmLCxM7xaWJs5054GHdXd3R0RElJeXy9OS7u7uZWVl2dnZlZWVZ8+era2tfeCBBxYtWvToo4/GxsaKm6q3t7dHRUXdMRfAkiRdv369oKBg3bp1co2vr+/FixdPnDhRUVHR0NDg6urq4+MTFhYmLz7LysoKDw+fM2eOjm5DQ0NjYmLEmnfffbetrU27ZUZGRkRExMqVK+Wa9PT048eP69g8DEZsoraVfeGFF/r6+sa0x4parQ4JCRmtQ40tdQzZLFLS2lJHb/udO3eK7X19fXW337p1q9h+xK2/3N3dOzo6DHwTjh49amVl1dXVJddob6nj6OjY1tYmHiVOGmnz9PTs6ekR2//yyy8G3lwUGfgjGGjGTk2b+hB62OHDh1evXv3vv/8a2L6xsXHlypU//fTTpEY1LRobG6Oiogx5EKqsrCw8PFytVot3BLRlZmaKOwf09vauX79eR/va2lpxoliSpODg4A0bNuiNxzSRwP+nvLx84cKFqamp/f39Opp1dnbu2bPH39//999/n7LYplhRUdHixYsLCwuHRhkF1NbWRkREBAUFDS9HFed1NcTExIibFkmSlJiYWF9frzuA3bt3a+y8s2vXLpbZjGjMI5M7npOT03PPPRcSEuLp6ens7GxhYXHp0qWWlpaWlpbi4uIff/xR+38R3alcXFxCQ0MffvhhJycnOzu7+vr6mpqampqa0tJS3R9zM8Fonz7js2rVquPHj09ghwB04RoYwExHAgNGjAQGjBgJDBgxEhgwYqa+lBJ3qpdeemkCexvHP9YAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAlPkfRy4g+z/BZ4sAAAAASUVORK5CYII=" # Let the Activity start in picture-in-picture mode -declare -A aparams=([$tgc_actvivity_pip]="true") +declare -A aparams=([$tgc_activity_pip]="true") declare -a activity=() tg_activity_new aparams activity @@ -194,7 +194,7 @@ set -u # Let the Activity start as a dialog -declare -A aparams=([$tgc_actvivity_dialog]="true") +declare -A aparams=([$tgc_activity_dialog]="true") declare -a activity=() tg_activity_new aparams activity diff --git a/src/tgui-bash.sh b/src/tgui-bash.sh index 5351b65..d0165ab 100644 --- a/src/tgui-bash.sh +++ b/src/tgui-bash.sh @@ -125,19 +125,19 @@ function tg__hex_to_dec() { ### CONSTANTS -declare -r tgc_actvivity_tid="tid" +declare -r tgc_activity_tid="tid" # shellcheck disable=SC2034 -declare -r tgc_actvivity_dialog="dialog" +declare -r tgc_activity_dialog="dialog" # shellcheck disable=SC2034 -declare -r tgc_actvivity_canceloutside="canceloutside" +declare -r tgc_activity_canceloutside="canceloutside" # shellcheck disable=SC2034 -declare -r tgc_actvivity_pip="pip" +declare -r tgc_activity_pip="pip" # shellcheck disable=SC2034 -declare -r tgc_actvivity_lockscreen="lockscreen" +declare -r tgc_activity_lockscreen="lockscreen" # shellcheck disable=SC2034 -declare -r tgc_actvivity_overlay="overlay" +declare -r tgc_activity_overlay="overlay" # shellcheck disable=SC2034 -declare -r tgc_actvivity_intercept="intercept" +declare -r tgc_activity_intercept="intercept" # shellcheck disable=SC2034 @@ -436,7 +436,7 @@ function tg_activity_new() { tg_json_send "newActivity" "$1" local tg_activity_rec tg_activity_rec="$(tg_msg_recv)" - if [ ! -v "tg_activity_new_params[${tgc_actvivity_tid}]" ]; then + if [ ! -v "tg_activity_new_params[${tgc_activity_tid}]" ]; then tg_activity_new_ret[0]="$(echo "$tg_activity_rec" | jq -r '.[0]')" tg_activity_new_ret[1]="$(echo "$tg_activity_rec" | jq -r '.[1]')" else diff --git a/tutorial/dialog.sh b/tutorial/dialog.sh index 58e73ce..ea5e927 100644 --- a/tutorial/dialog.sh +++ b/tutorial/dialog.sh @@ -4,7 +4,7 @@ set -u # Let the Activity start as a dialog -declare -A aparams=([$tgc_actvivity_dialog]="true") +declare -A aparams=([$tgc_activity_dialog]="true") declare -a activity=() tg_activity_new aparams activity diff --git a/tutorial/image.sh b/tutorial/image.sh index d19e6a4..4a21efe 100644 --- a/tutorial/image.sh +++ b/tutorial/image.sh @@ -6,7 +6,7 @@ set -u banner="iVBORw0KGgoAAAANSUhEUgAAAUAAAAC0CAIAAABqhmJGAAAABmJLR0QA/wD/AP+gvaeTAAANFklEQVR4nO3dfVBU1f/A8cuTSAyLGfGQBCiV8aRAaaWkaTQ6MTWEMEQNS/Rk4CRTlg9NONnYgA0zBCkjRko2wjTFGEUGhKNDEaImZtCgxjPKSAIKCyiL8P2D3+92Zhd2F+Rp3ffrL87Zcw8fFj57z73n3IMkAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAEM5vuAIBJ8dBDD01gb83NzX19fRPYIQBdhibUU089Nd0/0MjMpzsAAONHAgNGjAQGjBgJDBgxEhgwYiQwYMQspzuAkbm4uKSmpk5S51988cXRo0cnqXNgKs3QBFYoFJGRkZPU+bFjx0hg3BkYQgNGjAQGjNgMHULfvHmzurpabzMHBwcnJye5qFKpGhsb9R7V0dFxW8EBmBCbN28WF6weOXJkuiPCTMFaaAAzHQkMGDESGDBiJLAeNjY25uaT8i7Z2tqO4yhzc/NZs2YZ3n7y4sdMMEPvQk8jW1vbtWvXhoaGPvbYY87OznZ2dmq1uqWlpb6+Pj8/Pycn5+rVq3o7efzxx4OCgoa/VqlUe/fulV9SKpWRkZEBAQEuLi4XLlxYuHCh/NKaNWv8/PyGv+7v709PT5dfCg4OjouL8/b2XrBggaWlZUtLS21tbX5+/t69e2/evKnx3X18fKKjo5999lk3Nzd7e/uBgYG2traqqqrc3Ny8vLzu7u7Rwl63bt38+fPlYkpKit6fdN68eVFRUXKxsLCwqqpKLtrY2MTHx5uZ/bfxS3d3d2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XLpbZjGjMI5M7npOT03PPPRcSEuLp6ens7GxhYXHp0qWWlpaWlpbi4uIff/xR+38R3alcXFxCQ0MffvhhJycnOzu7+vr6mpqampqa0tJS3R9zM8Fonz7js2rVquPHj09ghwB04RoYwExHAgNGjAQGjBgJDBgxEhgwYqa+lBJ3qpdeemkCexvHP9YAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAlPkfRy4g+z/BZ4sAAAAASUVORK5CYII=" # Let the Activity start in picture-in-picture mode -declare -A aparams=([$tgc_actvivity_pip]="true") +declare -A aparams=([$tgc_activity_pip]="true") declare -a activity=() tg_activity_new aparams activity