Skip to content

Commit

Permalink
Uart: remove incorrect text from help. Closes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
antonio-openroad committed Dec 3, 2018
1 parent 186e6ae commit 69e7d36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ public boolean onOptionsItemSelected(MenuItem item) {
case R.id.action_help: {
FragmentManager fragmentManager = activity.getSupportFragmentManager();
if (fragmentManager != null) {
CommonHelpFragment helpFragment = CommonHelpFragment.newInstance(getString(R.string.uart_help_title), getString(R.string.uart_help_text));
CommonHelpFragment helpFragment = CommonHelpFragment.newInstance(getString(R.string.uart_help_title), getString(R.string.uart_help_text_android));
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction()
.replace(R.id.contentLayout, helpFragment, "Help");
fragmentTransaction.addToBackStack(null);
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@

<string name="uart_help_title">UART</string>
<string name="uart_help_text">Instructions:\n\n• Tap the input field at the bottom of the screen.\n\n• Enter the text string you want to send.\n\n• Send a message by pressing the keyboard\'s Send button.\n\n• Use the Timestamp/Text and ASCII/Hex control above the main console view to control the display format of messages.\n\n• Use the Export button to copy or send the contents of the console.\n\n• Use the Clear button to clear the console\'s contents.</string>
<string name="uart_help_text_android">Instructions:\n\n• Tap the input field at the bottom of the screen.\n\n• Enter the text string you want to send.\n\n• Send a message by pressing the keyboard\'s Send button.\n\n• Use the Timestamp/Text and ASCII/Hex control above the main console view to control the display format of messages.</string>

<string name="uart_error_peripheralinit">Uart protocol can not be initialized</string>
<string name="uart_error_multipleperiperipheralinit_format" formatted="false">Uart protocol can not be initialized for peripheral: %s</string>
Expand Down

0 comments on commit 69e7d36

Please sign in to comment.