Skip to content

Commit

Permalink
Add a possibility to make RatingWidget readOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesiek2010 committed May 29, 2019
1 parent 97b2258 commit df4910e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public RatingWidget(Context context, FormEntryPrompt prompt) {
imageButton.setId(total);
imageButton.setPadding(0, 0, 0, 0);
imageButton.setBackground(null);
imageButton.setEnabled(!getFormEntryPrompt().isReadOnly());
imageButton.setOnClickListener(view -> {
int position = view.getId();
for (int i = 0; i < numberOfStarsToShow; i++) {
Expand Down

0 comments on commit df4910e

Please sign in to comment.