Skip to content

Commit

Permalink
Fix category indentation.
Browse files Browse the repository at this point in the history
Minimum depth from API is 1 and in that case we cant 0 indentation.
  • Loading branch information
walokra committed Nov 9, 2015
1 parent 6792d71 commit d49b92e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Haikara/Controllers/MasterViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class MasterViewController: UIViewController, UITableViewDataSource, UITableView

let tableItem: Category = categories[indexPath.row] as Category
cell.textLabel!.text = tableItem.title
cell.indentationLevel = (favoritesSelected) ? 0 : tableItem.depth
cell.indentationLevel = (favoritesSelected) ? 0 : tableItem.depth - 1

return cell
}
Expand Down

0 comments on commit d49b92e

Please sign in to comment.