Skip to content

Commit a84ccc2

Browse files
committed
use proper viewpager background color
1 parent 12aae27 commit a84ccc2

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ android {
6565

6666
dependencies {
6767
implementation 'com.github.SimpleMobileTools:Simple-Commons:b452494768'
68-
implementation 'com.github.tibbi:PdfViewPager:6f9641fd2c'
68+
implementation 'com.github.tibbi:PdfViewPager:dd7da8173c'
6969
implementation 'com.github.Stericson:RootTools:df729dcb13'
7070
implementation 'com.github.Stericson:RootShell:1.6'
7171
implementation 'com.alexvasilkov:gesture-views:2.5.2'

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/PDFViewerActivity.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,14 @@ class PDFViewerActivity : SimpleActivity() {
9595
return
9696
}
9797

98-
pdf_viewer.orientation = ViewPager2.ORIENTATION_VERTICAL
99-
pdf_viewer.setBackgroundColor(getProperBackgroundColor())
100-
10198
val clickListener = View.OnClickListener {
10299
toggleFullScreen()
103100
}
104101

105102
val errorHandler = PdfErrorHandler { throwable -> showErrorToast(throwable.toString()) }
106103

107-
pdf_viewer.adapter = PDFPagerAdapter(this, clickListener, errorHandler, uri.toString())
104+
pdf_viewer.orientation = ViewPager2.ORIENTATION_VERTICAL
105+
pdf_viewer.adapter = PDFPagerAdapter(this, clickListener, errorHandler, uri.toString(), getProperBackgroundColor())
108106

109107
showSystemUI(true)
110108

0 commit comments

Comments
 (0)