From f92a92fd9f68e20ed7d564f3c48039cba7f45d2a Mon Sep 17 00:00:00 2001 From: Michael Johnston Date: Tue, 14 Jul 2020 23:29:39 +1000 Subject: [PATCH] no longer reloads view on-resume. --- .../zooforzotero/LibraryActivity/LibraryActivity.kt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/mickstarify/zooforzotero/LibraryActivity/LibraryActivity.kt b/app/src/main/java/com/mickstarify/zooforzotero/LibraryActivity/LibraryActivity.kt index 52e5aa78..9889b930 100644 --- a/app/src/main/java/com/mickstarify/zooforzotero/LibraryActivity/LibraryActivity.kt +++ b/app/src/main/java/com/mickstarify/zooforzotero/LibraryActivity/LibraryActivity.kt @@ -547,9 +547,15 @@ class LibraryActivity : AppCompatActivity(), Contract.View, } } + override fun onPause() { + Log.e("zotero", "paused") + super.onPause() + } + + var listPosition: Int = 0 override fun onPostResume() { + Log.e("zotero", "post-resumed") super.onPostResume() - Log.e("zotero", "resumed") presenter.onResume() } @@ -617,7 +623,7 @@ class LibraryActivity : AppCompatActivity(), Contract.View, override fun onResume() { super.onResume() - presenter.redisplayItems() + Log.d("zotero","onResume called.") } override fun onNoteCreate(note: Note) {