long bytesCompleted = 0;
long filesLength = 0;
switch (viewType) {
case R.id.view_type_directory:
Dir dir = getDir(position);
<BUG>holder.binding.setDir(dir);
holder.binding.checkbox.setState(isDirectoryChecked(dir));
holder.binding.checkbox.setEnabled(!isDirectoryCompleted(dir));
bytesCompleted = calculateBytesCompletedInDir(dir);</BUG>
filesLength = calculateFilesLengthInDir(dir);

long bytesCompleted = 0;
long filesLength = 0;
switch (viewType) {
case R.id.view_type_directory:
Dir dir = getDir(position);
holder.binding.setDir(dir);
boolean isDirectoryCompleted = isDirectoryCompleted(dir);
holder.binding.checkbox.setState(isDirectoryChecked(dir));
holder.binding.checkbox.setEnabled(!isDirectoryCompleted);
Set<Integer> priorities = dirPriorities(dir);
holder.binding.priorityButton.setText(formatDirPriorities(priorities));
holder.binding.priorityButton.setEnabled(!isDirectoryCompleted);
bytesCompleted = calculateBytesCompletedInDir(dir);
filesLength = calculateFilesLengthInDir(dir);
