Change the select button to also send an Event Server code if the Event Server connection is being used.

This allows the select button to work in situations where the jsonrpc server isn't functional yet
This commit is contained in:
Synced Synapse 2016-11-15 19:39:54 +00:00
parent 18811371a7
commit 361a854e1f
1 changed files with 4 additions and 2 deletions

View File

@ -187,15 +187,17 @@ public class RemoteFragment extends Fragment
setupEventServerButton(rightButton, ButtonCodes.REMOTE_RIGHT);
setupEventServerButton(upButton, ButtonCodes.REMOTE_UP);
setupEventServerButton(downButton, ButtonCodes.REMOTE_DOWN);
//setupEventServerButton(selectButton, ButtonCodes.REMOTE_SELECT);
setupEventServerButton(selectButton, ButtonCodes.REMOTE_SELECT);
} else {
// Otherwise, use json-rpc
setupRepeatButton(leftButton, new Input.Left());
setupRepeatButton(rightButton, new Input.Right());
setupRepeatButton(upButton, new Input.Up());
setupRepeatButton(downButton, new Input.Down());
setupDefaultButton(selectButton, new Input.Select(), null);
}
setupDefaultButton(selectButton, new Input.Select(), null);
// Other buttons
setupDefaultButton(backButton, new Input.Back(), null);