Skip to content
Snippets Groups Projects
Commit 65a3c9d4 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Fixed wrong fade transition for payment cell

parent 4b9ffdb9
No related branches found
No related tags found
1 merge request!213merge v1_6_0 into master
...@@ -241,8 +241,20 @@ public class PaymentCell extends ListCell<Payment> ...@@ -241,8 +241,20 @@ public class PaymentCell extends ListCell<Payment>
if(selectedPayment == null) if(selectedPayment == null)
return; return;
if(selectedPayment instanceof NormalPayment && item.getID() != selectedPayment.getID()) if(selectedPayment instanceof NormalPayment)
{
if(item instanceof NormalPayment)
{
if(item.getID() != selectedPayment.getID())
{
return;
}
}
else
{
return; return;
}
}
if(selectedPayment instanceof RepeatingPayment) if(selectedPayment instanceof RepeatingPayment)
{ {
...@@ -250,8 +262,10 @@ public class PaymentCell extends ListCell<Payment> ...@@ -250,8 +262,10 @@ public class PaymentCell extends ListCell<Payment>
{ {
RepeatingPaymentEntry itemRepeating = (RepeatingPaymentEntry)item; RepeatingPaymentEntry itemRepeating = (RepeatingPaymentEntry)item;
if(itemRepeating.getRepeatingPaymentID() != selectedPayment.getID()) if(itemRepeating.getRepeatingPaymentID() != selectedPayment.getID())
{
return; return;
} }
}
else else
{ {
return; return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment