Implemented Right-to-Left pageturn

This commit is contained in:
tom5079
2020-08-26 18:47:27 +09:00
parent 6579db3cc8
commit 1a95afe266
5 changed files with 9 additions and 1 deletions

View File

@@ -441,7 +441,7 @@ class ReaderActivity : AppCompatActivity() {
reader_recyclerview.layoutManager = LinearLayoutManager(this)
} else {
snapHelper.attachToRecyclerView(reader_recyclerview)
reader_recyclerview.layoutManager = LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false)
reader_recyclerview.layoutManager = LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, PreferenceManager.getDefaultSharedPreferences(this).getBoolean("rtl", false))
}
(reader_recyclerview.layoutManager as LinearLayoutManager).scrollToPositionWithOffset(currentPage-1, 0)