Skip to content

Commit

Permalink
Merge "Remove parentheses around return statement"
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Tate authored and Gerrit Code Review committed Oct 30, 2013
2 parents 9113520 + 67ab4ba commit 1f83509
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/html/guide/topics/ui/drag-drop.jd
Original file line number Diff line number Diff line change
Expand Up @@ -899,13 +899,13 @@ protected class myDragEventListener implements View.OnDragListener {
v.invalidate();

// returns true to indicate that the View can accept the dragged data.
return(true);
return true;

}

// Returns false. During the current drag and drop operation, this View will
// not receive events again until ACTION_DRAG_ENDED is sent.
return(false);
return false;

case DragEvent.ACTION_DRAG_ENTERED:

Expand All @@ -916,12 +916,12 @@ protected class myDragEventListener implements View.OnDragListener {
// Invalidate the view to force a redraw in the new tint
v.invalidate();

return(true);
return true;

case DragEvent.ACTION_DRAG_LOCATION:

// Ignore the event
return(true);
return true;

case DragEvent.ACTION_DRAG_EXITED:

Expand All @@ -931,7 +931,7 @@ protected class myDragEventListener implements View.OnDragListener {
// Invalidate the view to force a redraw in the new tint
v.invalidate();

return(true);
return true;

case DragEvent.ACTION_DROP:

Expand All @@ -951,7 +951,7 @@ protected class myDragEventListener implements View.OnDragListener {
v.invalidate();

// Returns true. DragEvent.getResult() will return true.
return(true);
return true;

case DragEvent.ACTION_DRAG_ENDED:

Expand All @@ -971,15 +971,15 @@ protected class myDragEventListener implements View.OnDragListener {
}

// returns true; the value is ignored.
return(true);
return true;

// An unknown action type was received.
default:
Log.e("DragDrop Example","Unknown action type received by OnDragListener.");
break;
}

return(false);
return false;
}
};
</pre>

0 comments on commit 1f83509

Please sign in to comment.