Skip to content

Commit

Permalink
Fixed tiny tee input bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ptibom committed May 24, 2020
1 parent 1c85494 commit 06d1b1f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c

addDropdownTees(course, diaDropdownTee);


diaDropdownTee.setOnFocusChangeListener((v, hasFocus) -> {
if (hasFocus) {
diaDropdownTee.showDropDown();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c
View view = super.onCreateView(inflater, container, savedInstanceState);
Objects.requireNonNull(diaPlayerAbbr.getEditText()).setText(player.getInitials());
Objects.requireNonNull(diaPlayerHCP.getEditText()).setText(String.valueOf(player.getHcp()));
diaDropdownTee.setText(player.getTee().getName());
diaDropdownTee.setText(player.getTee().getName(), false);

View item = toolbar.findViewById(R.id.action_name);
item.setOnClickListener(v -> editPlayer());


return view;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
<string name="initials">Initials</string>
<string name="handicap">Handicap</string>
<string name="dev_options">Dev options</string>
<string name="add_one">+</string>
<string name="add_one">+1</string>
<string name="hint_abbreviated_name">Initials</string>
<string name="remove_one">-</string>
<string name="remove_one">-1</string>
<string name="eighteen">18 holes</string>
<string name="first9">First 9</string>
<string name="last9">Last 9</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
<string name="initials">Initialer</string>
<string name="handicap">Handicap</string>
<string name="dev_options">Dev options</string>
<string name="add_one">+</string>
<string name="remove_one">-</string>
<string name="add_one">+1</string>
<string name="remove_one">-1</string>
<string name="eighteen">18 Hål</string>
<string name="first9">Första 9</string>
<string name="last9">Sista 9</string>
Expand Down
4 changes: 2 additions & 2 deletions development/SimpleGolf/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
<string name="holes_quantity_question">Hur många hål kommer du spela?</string>
<string name="add_player">Lägg till spelare</string>
<string name="request_player_details">Ange spelardetaljer</string>
<string name="add_one">+</string>
<string name="add_one">+1</string>
<string name="add">Lägg till</string>
<string name="remove_one">-</string>
<string name="remove_one">-1</string>
<string name="remove">Ta bort</string>
<string name="abort">Avbryt</string>
<string name="specify_name">Ange namn</string>
Expand Down
Binary file modified release/SimpleGolf.apk
Binary file not shown.

0 comments on commit 06d1b1f

Please sign in to comment.