Wrong way to do a null check

pull/14/head
Tim Su 14 years ago
parent 0fd5a672ab
commit f636caaf9f

@ -287,7 +287,7 @@ public class TaskListAdapter extends ArrayAdapter<TaskModelForList> {
// expanded container
final View expandedContainer = view.findViewById(R.id.expanded_layout);
if(expandedContainer == null)
if(expandedContainer != null)
expandedContainer.setVisibility(isExpanded ? View.VISIBLE : View.GONE);
// name

Loading…
Cancel
Save