diff --git a/app/build.gradle b/app/build.gradle index da203113..8e421687 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,12 +9,12 @@ if (keystorePropertiesFile.exists()) { } android { - compileSdkVersion 31 + compileSdkVersion 33 defaultConfig { applicationId "com.simplemobiletools.filemanager.pro" minSdkVersion 21 - targetSdkVersion 31 + targetSdkVersion 33 versionCode 124 versionName "6.13.0" multiDexEnabled true @@ -64,7 +64,7 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:0c82e5f216' + implementation 'com.github.SimpleMobileTools:Simple-Commons:59d56ae16f' implementation 'com.github.tibbi:AndroidPdfViewer:da57ff410e' implementation 'com.github.Stericson:RootTools:df729dcb13' implementation 'com.github.Stericson:RootShell:1.6' diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/PDFViewerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/PDFViewerActivity.kt index a627e4f2..e55d4e25 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/PDFViewerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/PDFViewerActivity.kt @@ -68,7 +68,7 @@ class PDFViewerActivity : SimpleActivity() { finish() } - if (!portrait && navigationBarRight && navigationBarWidth > 0) { + if (!portrait && navigationBarOnSide && navigationBarWidth > 0) { pdf_viewer_appbar.setPadding(0, 0, navigationBarWidth, 0) } else { pdf_viewer_appbar.setPadding(0, 0, 0, 0) @@ -78,7 +78,7 @@ class PDFViewerActivity : SimpleActivity() { override fun onConfigurationChanged(newConfig: Configuration) { super.onConfigurationChanged(newConfig) (pdf_viewer_appbar.layoutParams as RelativeLayout.LayoutParams).topMargin = statusBarHeight - if (!portrait && navigationBarRight && navigationBarWidth > 0) { + if (!portrait && navigationBarOnSide && navigationBarWidth > 0) { pdf_viewer_appbar.setPadding(0, 0, navigationBarWidth, 0) } else { pdf_viewer_appbar.setPadding(0, 0, 0, 0) diff --git a/build.gradle b/build.gradle index e77f113d..1bdec2af 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = '1.6.21' + ext.kotlin_version = '1.7.10' repositories { google() @@ -9,7 +9,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:7.2.1' + classpath 'com.android.tools.build:gradle:7.2.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong