Skip to content

Commit

Permalink
Merge pull request #47 from Sav22999/beta
Browse files Browse the repository at this point in the history
1.13.4
  • Loading branch information
Sav22999 authored Oct 17, 2023
2 parents f9bf444 + 2361b36 commit c98660c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
applicationId 'com.saverio.pdfviewer'
minSdk 21
targetSdk 33
versionCode 53
versionName '1.13.2'
versionCode 55
versionName '1.13.4'

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Binary file modified app/release/app-release.aab
Binary file not shown.
34 changes: 18 additions & 16 deletions app/src/main/java/com/saverio/pdfviewer/PDFViewer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -107,27 +107,30 @@ class PDFViewer : AppCompatActivity() {
//println("File opened\t" + fileOpened)
} catch (e: Exception) {
println("Exception Z2\n" + e.message)
try {
val tempUrl = URLDecoder.decode(intent.data.toString(), "UTF-8").split("/")
fileOpened = ""
var storageFound = false
tempUrl.forEach {
if (storageFound || it == "storage") {
storageFound = true
fileOpened += "/" + it
}
}

} catch (e: Exception) {
fileOpened = intent.data.toString()
println("Exception Z3\n" + e.message)
}
fileOpened = null
}
isSupportedShareFeature = true
} catch (e: Exception) {
println("Exception Z1\n" + e.message)
uriToUse = ""
}
if (fileOpened == null) {
try {
val tempUrl = URLDecoder.decode(intent.data.toString(), "UTF-8").split("/")
fileOpened = ""
var storageFound = false
tempUrl.forEach {
if (storageFound || it == "storage") {
storageFound = true
fileOpened += "/" + it
}
}

} catch (e: Exception) {
fileOpened = intent.data.toString()
println("Exception Z3\n" + e.message)
}
}
if (uriToUse == null || uriToUse == "") {
//if (getLastFileOpened() == "") {
//open a new file
Expand Down Expand Up @@ -463,7 +466,6 @@ class PDFViewer : AppCompatActivity() {
hideTopBar()
}


checkFirstTimeShowMessageGuide()
setScrollBarSide()
}.onError(OnErrorListener {
Expand Down

0 comments on commit c98660c

Please sign in to comment.