mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02:00
use proper viewpager background color
This commit is contained in:
@ -65,7 +65,7 @@ android {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:b452494768'
|
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:RootTools:df729dcb13'
|
||||||
implementation 'com.github.Stericson:RootShell:1.6'
|
implementation 'com.github.Stericson:RootShell:1.6'
|
||||||
implementation 'com.alexvasilkov:gesture-views:2.5.2'
|
implementation 'com.alexvasilkov:gesture-views:2.5.2'
|
||||||
|
@ -95,16 +95,14 @@ class PDFViewerActivity : SimpleActivity() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
pdf_viewer.orientation = ViewPager2.ORIENTATION_VERTICAL
|
|
||||||
pdf_viewer.setBackgroundColor(getProperBackgroundColor())
|
|
||||||
|
|
||||||
val clickListener = View.OnClickListener {
|
val clickListener = View.OnClickListener {
|
||||||
toggleFullScreen()
|
toggleFullScreen()
|
||||||
}
|
}
|
||||||
|
|
||||||
val errorHandler = PdfErrorHandler { throwable -> showErrorToast(throwable.toString()) }
|
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)
|
showSystemUI(true)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user