Fix a crash in the reader when restoring the instance. Removed capitalization on each word

This commit is contained in:
len 2016-03-29 13:47:32 +02:00
parent c3425346b7
commit 06c63f1207
3 changed files with 9 additions and 9 deletions

View File

@ -73,8 +73,8 @@ class ReaderPresenter : BasePresenter<ReaderActivity>() {
super.onCreate(savedState) super.onCreate(savedState)
if (savedState != null) { if (savedState != null) {
source = sourceManager.get(manga.source)!!
manga = savedState.getSerializable(MANGA_KEY) as Manga manga = savedState.getSerializable(MANGA_KEY) as Manga
source = sourceManager.get(manga.source)!!
chapter = savedState.getSerializable(CHAPTER_KEY) as Chapter chapter = savedState.getSerializable(CHAPTER_KEY) as Chapter
requestedPage = savedState.getInt(PAGE_KEY) requestedPage = savedState.getInt(PAGE_KEY)
initializeSubjects() initializeSubjects()

View File

@ -87,9 +87,9 @@
<string name="update_48hour">Every 2 days</string> <string name="update_48hour">Every 2 days</string>
<string name="pref_auto_update_manga_sync">Sync chapters after reading</string> <string name="pref_auto_update_manga_sync">Sync chapters after reading</string>
<string name="pref_ask_update_manga_sync">Confirm before updating</string> <string name="pref_ask_update_manga_sync">Confirm before updating</string>
<string name="pref_theme">Application Theme</string> <string name="pref_theme">Application theme</string>
<string name="light_theme">Main Theme</string> <string name="light_theme">Main theme</string>
<string name="dark_theme">Dark Theme</string> <string name="dark_theme">Dark theme</string>
<!-- Reader section --> <!-- Reader section -->
@ -263,7 +263,7 @@
<string name="update_check_confirm">Download</string> <string name="update_check_confirm">Download</string>
<string name="update_check_ignore">Ignore</string> <string name="update_check_ignore">Ignore</string>
<string name="update_check_no_new_updates">No new updates available</string> <string name="update_check_no_new_updates">No new updates available</string>
<string name="update_check_download_started">Download Started</string> <string name="update_check_download_started">Download started</string>
<string name="update_check_look_for_updates">Looking for updates</string> <string name="update_check_look_for_updates">Looking for updates</string>
<!--Content Description--> <!--Content Description-->
@ -271,8 +271,8 @@
<string name="description_cover">Cover of selected manga</string> <string name="description_cover">Cover of selected manga</string>
<!-- Information Text --> <!-- Information Text -->
<string name="information_no_downloads">No Downloads</string> <string name="information_no_downloads">No downloads</string>
<string name="information_no_recent">No Recent Chapters</string> <string name="information_no_recent">No recent chapters</string>
<string name="information_empty_library">Empty Library</string> <string name="information_empty_library">Empty library</string>
</resources> </resources>

View File

@ -6,7 +6,7 @@ buildscript {
jcenter() jcenter()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:2.1.0-alpha3' classpath 'com.android.tools.build:gradle:2.1.0-alpha4'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.12.0' classpath 'com.github.ben-manes:gradle-versions-plugin:0.12.0'
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files // in the individual module build.gradle files