fixes #17
3 changed files with 4 additions and 4 deletions
|
@ -12,8 +12,8 @@ android {
|
|||
applicationId = "com.wbrawner.skerge"
|
||||
minSdk = libs.versions.minSdk.get().toInt()
|
||||
targetSdk = libs.versions.maxSdk.get().toInt()
|
||||
versionCode = 1
|
||||
versionName = "1.0"
|
||||
versionCode = 2
|
||||
versionName = "1.1"
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
vectorDrawables {
|
||||
|
@ -45,6 +45,7 @@ android {
|
|||
compose = true
|
||||
}
|
||||
lint {
|
||||
disable += listOf("AndroidGradlePluginVersion", "GradleDependency")
|
||||
warningsAsErrors = true
|
||||
}
|
||||
}
|
||||
|
|
|
@ -90,7 +90,6 @@ class MainActivity : ComponentActivity() {
|
|||
addButtonClicked = viewModel::requestScan,
|
||||
shareButtonClicked = {
|
||||
pdfShareJob = coroutineScope.launch {
|
||||
delay(10_000)
|
||||
val file = if (pages.size == 1) {
|
||||
pages.first().file ?: return@launch
|
||||
} else {
|
||||
|
|
|
@ -41,7 +41,7 @@ fun File.buildShareIntent(context: Context): Intent =
|
|||
"com.wbrawner.skerge.pdfprovider",
|
||||
this@buildShareIntent
|
||||
)
|
||||
data = uri
|
||||
setDataAndTypeAndNormalize(uri, "application/pdf")
|
||||
putExtra(Intent.EXTRA_STREAM, uri)
|
||||
addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
|
||||
}, name)
|
||||
|
|
Loading…
Reference in a new issue