Skip to content

Commit

Permalink
MATH: comment for fixing subtraction animation.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevindeland committed Sep 16, 2018
1 parent 239426f commit 85251d7
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,20 @@ private void initializeOnClickListeners() {
for (int i=1; i <= 10; i++) {

MovableImageView oneView = _layout.getBaseTenConcreteUnitView(numLoc, ONE_DIGIT, i);
oneView.setOnClickListener(ALL_AT_ONCE ? new BaseTenOnClickAnimateWaterfall(numLoc, ONE_DIGIT) : new BaseTenOnClickAnimateMe(ONE_DIGIT));

// BUG_605 table of cases:
// 1-digit... animate one at a time
// 2- or above digit... animate all at once
// X
// addition move to result row
// subtraction move to operand row
View.OnClickListener listener;
if (ALL_AT_ONCE) {
listener = new BaseTenOnClickAnimateWaterfall(numLoc, ONE_DIGIT);
}


oneView.setOnClickListener(ALL_AT_ONCE ? new BaseTenOnClickAnimateWaterfall(numLoc, ONE_DIGIT) : new BaseTenOnClickAnimateMe(ONE_DIGIT)); // BUG_605 this should vary depending on whether it's for subtraction, and 1-digit
}

// add listeners to Tens
Expand Down

0 comments on commit 85251d7

Please sign in to comment.