mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-07 15:38:50 +01:00
use proper viewpager background color
This commit is contained in:
parent
12aae27ccd
commit
a84ccc2e23
@ -65,7 +65,7 @@ android {
|
||||
|
||||
dependencies {
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:b452494768'
|
||||
implementation 'com.github.tibbi:PdfViewPager:6f9641fd2c'
|
||||
implementation 'com.github.tibbi:PdfViewPager:dd7da8173c'
|
||||
implementation 'com.github.Stericson:RootTools:df729dcb13'
|
||||
implementation 'com.github.Stericson:RootShell:1.6'
|
||||
implementation 'com.alexvasilkov:gesture-views:2.5.2'
|
||||
|
@ -95,16 +95,14 @@ class PDFViewerActivity : SimpleActivity() {
|
||||
return
|
||||
}
|
||||
|
||||
pdf_viewer.orientation = ViewPager2.ORIENTATION_VERTICAL
|
||||
pdf_viewer.setBackgroundColor(getProperBackgroundColor())
|
||||
|
||||
val clickListener = View.OnClickListener {
|
||||
toggleFullScreen()
|
||||
}
|
||||
|
||||
val errorHandler = PdfErrorHandler { throwable -> showErrorToast(throwable.toString()) }
|
||||
|
||||
pdf_viewer.adapter = PDFPagerAdapter(this, clickListener, errorHandler, uri.toString())
|
||||
pdf_viewer.orientation = ViewPager2.ORIENTATION_VERTICAL
|
||||
pdf_viewer.adapter = PDFPagerAdapter(this, clickListener, errorHandler, uri.toString(), getProperBackgroundColor())
|
||||
|
||||
showSystemUI(true)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user