Skip to content

Commit

Permalink
Only check if widget is waiting for data if it is a binary widget. (g…
Browse files Browse the repository at this point in the history
  • Loading branch information
lognaturel authored and yanokwa committed Sep 4, 2017
1 parent 23c58c0 commit e0300a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ private void scaleDownImageIfNeeded(String path) {
private QuestionWidget getWidgetWaitingForBinaryData() {
QuestionWidget questionWidget = null;
for (QuestionWidget qw : ((ODKView) currentView).getWidgets()) {
if (((IBinaryWidget) qw).isWaitingForBinaryData()) {
if (qw instanceof IBinaryWidget && ((IBinaryWidget) qw).isWaitingForBinaryData()) {
questionWidget = qw;
}
}
Expand Down

0 comments on commit e0300a3

Please sign in to comment.