mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02:00
make sure the Print button at PDF viewer is clickable in landscape too
This commit is contained in:
@ -93,6 +93,7 @@
|
|||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.PDFViewerActivity"
|
android:name=".activities.PDFViewerActivity"
|
||||||
|
android:configChanges="orientation|keyboardHidden|screenSize"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:label="@string/pdf_viewer"
|
android:label="@string/pdf_viewer"
|
||||||
android:theme="@style/TranslucentTheme">
|
android:theme="@style/TranslucentTheme">
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package com.simplemobiletools.filemanager.pro.activities
|
package com.simplemobiletools.filemanager.pro.activities
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
|
import android.content.res.Configuration
|
||||||
import android.graphics.Color
|
import android.graphics.Color
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.print.PrintAttributes
|
import android.print.PrintAttributes
|
||||||
@ -68,6 +69,15 @@ class PDFViewerActivity : SimpleActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onConfigurationChanged(newConfig: Configuration) {
|
||||||
|
super.onConfigurationChanged(newConfig)
|
||||||
|
if (!portrait && navigationBarRight && navigationBarWidth > 0) {
|
||||||
|
pdf_viewer_appbar.setPadding(0, 0, navigationBarWidth, 0)
|
||||||
|
} else {
|
||||||
|
pdf_viewer_appbar.setPadding(0, 0, 0, 0)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun checkIntent() {
|
private fun checkIntent() {
|
||||||
val uri = intent.data
|
val uri = intent.data
|
||||||
if (uri == null) {
|
if (uri == null) {
|
||||||
|
Reference in New Issue
Block a user