Skip to content

Commit

Permalink
podadrem: Issue newline before GB commands
Browse files Browse the repository at this point in the history
reference: ba7a2f7
  • Loading branch information
thyttan committed Jun 26, 2023
1 parent be5fcdd commit ac448b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/podadrem/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ Addict.
0.06: Add compatibility with Fastload Utils.
0.07: Remove just the specific listeners to not interfere with Quick Launch
when fastloading.
0.08: Issue newline before GB commands (solves issue with console.log and ignored commands)
3 changes: 3 additions & 0 deletions apps/podadrem/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ let simpleSearchTerm = function() { // input a simple search term without tags,

let searchPlayWOTags = function() { //make a search and play using entered terms
searchString = simpleSearch;
Bluetooth.println("");
Bluetooth.println(JSON.stringify({
t: "intent",
action: "android.media.action.MEDIA_PLAY_FROM_SEARCH",
Expand All @@ -157,6 +158,7 @@ let searchPlayWOTags = function() { //make a search and play using entered terms
};

let gadgetbridgeWake = function() {
Bluetooth.println("");
Bluetooth.println(JSON.stringify({
t: "intent",
target: "activity",
Expand All @@ -174,6 +176,7 @@ let actFn = function(actName, activOrServ) {
// Send the intent message to Gadgetbridge
let btMsg = function(activOrServ, cls, actName, xtra) {

Bluetooth.println("");
Bluetooth.println(JSON.stringify({
t: "intent",
action: actFn(actName, activOrServ),
Expand Down
2 changes: 1 addition & 1 deletion apps/podadrem/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "podadrem",
"name": "Podcast Addict Remote",
"shortName": "PA Remote",
"version": "0.07",
"version": "0.08",
"description": "Control Podcast Addict on your android device.",
"readme": "README.md",
"type": "app",
Expand Down

0 comments on commit ac448b5

Please sign in to comment.