|
|
|
@ -102,7 +102,7 @@ object Permissions { |
|
|
|
Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED || isExternalStorageManager() |
|
|
|
} |
|
|
|
|
|
|
|
fun canSendNotifications(context: Context) = Build.VERSION.SDK_INT <= Build.VERSION_CODES.TIRAMISU || ContextCompat.checkSelfPermission(context, "android.permission.POST_NOTIFICATIONS") == PackageManager.PERMISSION_GRANTED |
|
|
|
fun canSendNotifications(context: Context) = Build.VERSION.SDK_INT <= Build.VERSION_CODES.S_V2 || ContextCompat.checkSelfPermission(context, "android.permission.POST_NOTIFICATIONS") == PackageManager.PERMISSION_GRANTED |
|
|
|
|
|
|
|
/** |
|
|
|
* Check if the app has a complete access to the files especially on Android 11 |
|
|
|
|