Add an option to update the library automatically after a specified time and an option to update only non completed mangas. Other minor changes.

This commit is contained in:
inorichi
2016-01-10 17:47:43 +01:00
parent 6eb321bb06
commit fcb5bf4dd4
13 changed files with 209 additions and 46 deletions
@@ -105,10 +105,7 @@ public class LibraryFragment extends BaseRxFragment<LibraryPresenter>
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.action_refresh:
if (!LibraryUpdateService.isRunning(getActivity())) {
Intent intent = LibraryUpdateService.getStartIntent(getActivity());
getActivity().startService(intent);
}
LibraryUpdateService.start(getActivity());
return true;
case R.id.action_edit_categories:
onEditCategories();