Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnRPCNotificationListener for ON_Button_Press JavaSE #1397

Closed
JulianKast opened this issue Jun 24, 2020 · 0 comments
Closed

OnRPCNotificationListener for ON_Button_Press JavaSE #1397

JulianKast opened this issue Jun 24, 2020 · 0 comments
Labels
bug A defect in the library cloud Relating to Java-SE / Java-EE Cloud Apps rpc Relating to the RPC layer
Projects

Comments

@JulianKast
Copy link
Contributor

Bug Report

When subscribed to a button, having an OnRPCNotificaionListener for FunctionID.ON_BUTTON_PRESS and FunctionID.ON_BUTTON_EVENT, the first time the button is pressed onEvent gets triggered right away, but On_Button_Press is delayed by about a minute or more. The problem goes away until you click on a menu item, then it comes back the next time you click on the subscribed button.

Reproduction Steps

IN JavaSE ONLY

  1. Add OnRPCNotificaionListener for FunctionID.ON_BUTTON_PRESS and FunctionID.ON_BUTTON_EVENT
  2. Subscribe to a button
  3. Click on the button subscribed
Expected Behavior

ON_BUTTON_PRESS should be called right away with ON_BUTTON_EVENT

Observed Behavior

ON_BUTTON_PRESS is delayed by about a minute

OS & Version Information
  • Testing Against: Core using sdl_HMI
Test Case, Sample Code, and / or Example App
        sdlManager.addOnRPCNotificationListener(FunctionID.ON_BUTTON_PRESS, new OnRPCNotificationListener() {
            @Override
            public void onNotified(RPCNotification notification) {
                Log.i(TAG, "onNotified: OnPress");
            }
        });
        sdlManager.addOnRPCNotificationListener(FunctionID.ON_BUTTON_EVENT, new OnRPCNotificationListener() {
            @Override
            public void onNotified(RPCNotification notification) {
                Log.i(TAG, "onNotified: OnEvent");
            }
        });
        SubscribeButton subscribeButtonRequest = new SubscribeButton();
        subscribeButtonRequest.setButtonName(ButtonName.PRESET_1);
        subscribeButtonRequest.setOnRPCResponseListener(new OnRPCResponseListener() {
            @Override
            public void onResponse(int correlationId, RPCResponse response) {

            }
        });
        sdlManager.sendRPC(subscribeButtonRequest);
@joeljfischer joeljfischer added bug A defect in the library cloud Relating to Java-SE / Java-EE Cloud Apps rpc Relating to the RPC layer labels Jul 8, 2020
@RHenigan RHenigan added this to Contributions in 5.1.0 via automation Jan 27, 2021
@RHenigan RHenigan moved this from Contributions to Done in 5.1.0 Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the library cloud Relating to Java-SE / Java-EE Cloud Apps rpc Relating to the RPC layer
Projects
No open projects
5.1.0
Done
Development

No branches or pull requests

3 participants