mirror of
https://github.com/CherretGit/zaprett-app.git
synced 2026-01-01 00:19:42 +05:00
fix package name empty on activity start
This commit is contained in:
@@ -126,7 +126,7 @@ class MainActivity : ComponentActivity() {
|
||||
onConfirm = {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
||||
val intent = Intent(Settings.ACTION_MANAGE_ALL_FILES_ACCESS_PERMISSION)
|
||||
val uri = Uri.fromParts("package", applicationContext.packageName, null)
|
||||
val uri = Uri.fromParts("package", packageName, null)
|
||||
intent.data = uri
|
||||
startActivity(intent)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user