Skip to content

Commit

Permalink
Fixed issue with subscriptions on webOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy White committed May 12, 2014
1 parent e370379 commit ae869d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ public URLServiceSubscription(DeviceService service, String uri, JSONObject payl

public URLServiceSubscription(DeviceService service, String uri, JSONObject payload, boolean isWebOS, ResponseListener<Object> listener) {
super(service, uri, payload, isWebOS, listener);

if (isWebOS)
httpMethod = "subscribe";
}

public void send() {
Expand Down
4 changes: 2 additions & 2 deletions src/com/connectsdk/service/webos/WebOSTVKeyboardInput.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void onError(ServiceCommandError error) {
}
};

ServiceCommand<ResponseListener<Object>> request = new ServiceCommand<ResponseListener<Object>>(service, uri, payload, responseListener);
ServiceCommand<ResponseListener<Object>> request = new ServiceCommand<ResponseListener<Object>>(service, uri, payload, true, responseListener);
request.send();
}

Expand All @@ -164,7 +164,7 @@ public void onError(ServiceCommandError error) {
}
};

URLServiceSubscription<TextInputStatusListener> subscription = new URLServiceSubscription<TextInputStatusListener>(service, KEYBOARD_INPUT, null, responseListener);
URLServiceSubscription<TextInputStatusListener> subscription = new URLServiceSubscription<TextInputStatusListener>(service, KEYBOARD_INPUT, null, true, responseListener);
subscription.send();

return subscription;
Expand Down

0 comments on commit ae869d7

Please sign in to comment.