Skip to content

Commit

Permalink
example/ivy/android: remove prompt symbol
Browse files Browse the repository at this point in the history
Now the user input is printed in bold, so it is obvious even with
out this dummy prompt-like symbol. This makes the output more like
the desktop version of Ivy tool.

Change-Id: I146685815ceb52aa5da6ddaa64f764e43839ffa9
Reviewed-on: https://go-review.googlesource.com/c/mobile/+/356733
Run-TryBot: Hyang-Ah Hana Kim <[email protected]>
TryBot-Result: Go Bot <[email protected]>
Reviewed-by: Rob Pike <[email protected]>
Trust: Cherry Mui <[email protected]>
  • Loading branch information
hyangah committed Oct 29, 2021
1 parent 93c5f8a commit 7b8bfe0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
public class MainActivity extends AppCompatActivity {
final String DEMO_SCRIPT = "demo.ivy"; // in assets directory.
final String DEBUG_TAG = "Ivy";
final String PROMPT = "> ";

private WebView mWebView;
private EditText mEditText;
Expand Down Expand Up @@ -242,7 +241,7 @@ private void appendShowPreformattedText(final String s, final String tag) {
private void callIvy() {
String s = mEditText.getText().toString().trim();
if (s != null && !s.isEmpty()) {
appendShowText(PROMPT + s, "expr");
appendShowText(s, "expr");
}
if (mDemo != null && s.trim().equals("quit")) {
unloadDemo();
Expand Down

0 comments on commit 7b8bfe0

Please sign in to comment.