1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 10:19:33 +02:00

code simplification + introduced MissingBookActivity

This commit is contained in:
Nikolay Pultsin 2014-11-16 00:19:41 +00:00
parent d79e31eb87
commit 9d0166d9a7
11 changed files with 81 additions and 47 deletions

View file

@ -133,10 +133,10 @@ public abstract class Util implements UserRegistrationConstants {
activity.startService(
new Intent(Intent.ACTION_VIEW, Uri.parse(ref.Url),
activity.getApplicationContext(), BookDownloaderService.class)
.putExtra(BookDownloaderService.BOOK_MIME, ref.Mime.toString())
.putExtra(BookDownloaderService.Key.BOOK_MIME, ref.Mime.toString())
.putExtra(BookDownloaderService.REFERENCE_TYPE_KEY, resolvedType)
.putExtra(BookDownloaderService.CLEAN_URL_KEY, ref.cleanUrl())
.putExtra(BookDownloaderService.TITLE_KEY, book.Title)
.putExtra(BookDownloaderService.Key.BOOK_TITLE, book.Title)
);
}
}