#2154 made bookmarks lazy

This commit is contained in:
HissPirat 2020-06-26 17:24:33 +02:00
parent 149b3afe37
commit 9fb075c9be

View File

@ -27,12 +27,12 @@ class BookmarksActivity : PageActivity() {
PageAdapter(BookmarkItemDelegate(this))
}
override val showAllPagesSwitch: Switch = bookmarks_switch
override val noItems: TextView = no_bookmarks
override val recyclerView: RecyclerView = recycler_view
override val showAllPagesSwitch: Switch by lazy { bookmarks_switch }
override val noItems: TextView by lazy { no_bookmarks }
override val recyclerView: RecyclerView by lazy { recycler_view }
override val layoutId: Int = R.layout.activity_bookmarks
override val title: String = getString(R.string.bookmarks)
override val switchIsChecked: Boolean = sharedPreferenceUtil.showBookmarksAllBooks
override val title: String by lazy { getString(R.string.bookmarks) }
override val switchIsChecked: Boolean by lazy { sharedPreferenceUtil.showBookmarksAllBooks }
override fun onCreateOptionsMenu(menu: Menu): Boolean {
menuInflater.inflate(R.menu.menu_bookmarks, menu)