Skip to content

Commit

Permalink
Orange frame disappears for deselected icons in Grid Widget(Single an…
Browse files Browse the repository at this point in the history
…d Multi select) (getodk#679)
  • Loading branch information
pratikmjoshi authored and lognaturel committed Mar 28, 2017
1 parent ff04773 commit 0c24c54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ public GridMultiWidget(Context context, FormEntryPrompt prompt, int numColumns)
public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
if (selected[position]) {
selected[position] = false;
imageViews[position].setBackgroundColor(0);
if (audioHandlers[position] != null) {
stopAudio();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
stopAudio();
}
selected[i] = false;
imageViews[i].setBackgroundColor(0);
if (imageViews[i] != null) {
}
}
Expand Down

0 comments on commit 0c24c54

Please sign in to comment.