Moved history adding code to ReaderActivity.kt

This commit is contained in:
tom5079
2020-08-26 23:47:07 +09:00
parent 3558d826fb
commit 5488e14f32
2 changed files with 1 additions and 4 deletions

View File

@@ -435,8 +435,6 @@ class MainActivity : AppCompatActivity() {
} }
startActivity(intent) startActivity(intent)
histories.add(galleryID)
} }
}.show() }.show()
} }
@@ -518,8 +516,6 @@ class MainActivity : AppCompatActivity() {
//TODO: Maybe sprinkling some transitions will be nice :D //TODO: Maybe sprinkling some transitions will be nice :D
startActivity(intent) startActivity(intent)
histories.add(gallery.id)
} }
onItemLongClickListener = listener@{ _, position, v -> onItemLongClickListener = listener@{ _, position, v ->

View File

@@ -96,6 +96,7 @@ class ReaderActivity : AppCompatActivity() {
handleIntent(intent) handleIntent(intent)
(application as Pupil).histories.add(galleryID)
FirebaseCrashlytics.getInstance().setCustomKey("GalleryID", galleryID) FirebaseCrashlytics.getInstance().setCustomKey("GalleryID", galleryID)
if (galleryID == 0) { if (galleryID == 0) {