Fix indents & organize imports (res & src)
Return an empty list if there is no data and no error

Fixes #195
Merge pull request #194 from ratan12/Fix_indentations

Fix indents & organize imports (res & src)
Merge pull request #196 from d-sko/networktask_fix

Don't return null for list tasks with empty results in NetworkTask
Don't show swipe refresh animation for search
Don't declare af and mf in Home as static

Static variables are considered as bad practise in most cases and can
cause subtle bugs as well as GC-problems and should be avoided if
possible. Also there is not really a reason for them to be static in
Home so generate them dynamically.
SearchActivity improved

- no static af & mf
- rename HomeSectionsPagerAdapter to SectionsPagerAdapter and use it
  for SearchActivity too
- improved search intent handling
Error callback for NetworkTask

NetworkTask now has an error callback. In case of an error
onNetworkTaskError() is called instead of onNetworkTaskFinished. So
onNetworkTaskFinished is never called if there was an error in the
NetworkTask.
better af & mf assignment
Use ListType-variable instead of boolean for type definition

ListType is made for this, so use it :)
Remove static callback in SearchActivity

- replaced by callback interface: onRecordsLoadingFinished()
- improved crouton messages: always show only one crouton, not two if
  af & mf tasks failed, also show a crouton if sync failed
Don't set taskjob in SectionsPagerAdapter

Avoids unnecessary getRecords()-call in SearchActivity
Fix some messed up indents
Fix possible NPE
Remove useless resetPage()

getRecords() calls resetPage() if clear is true, which is always the
case here.
isEmpty is API 9+ so remove it
No need to call getRecords in onCreateView

Just refresh if there are records (e. g. after rotation)
Fix NetworkTask error handling

The tasks which return paged results return a 404 if the page is
invalid, so handle this properly.
Fix infinite calling of getRecords when reached last page
Fix loading more another page on rotation