diff --git a/app/src/main/java/com/orgzly/android/ui/repo/git/GitRepoActivity.kt b/app/src/main/java/com/orgzly/android/ui/repo/git/GitRepoActivity.kt index 0493289d4..575d5a157 100644 --- a/app/src/main/java/com/orgzly/android/ui/repo/git/GitRepoActivity.kt +++ b/app/src/main/java/com/orgzly/android/ui/repo/git/GitRepoActivity.kt @@ -208,6 +208,13 @@ class GitRepoActivity : CommonActivity(), GitPreferences { binding.activityRepoGitHttpsAuthInfo.visibility = View.GONE binding.activityRepoGitHttpsUsernameLayout.visibility = View.GONE binding.activityRepoGitHttpsPasswordLayout.visibility = View.GONE + // Using SSH transport requires notification permission (for server key verification) + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { + AppPermissions.isGrantedOrRequest( + App.getCurrentActivity(), + AppPermissions.Usage.POST_NOTIFICATIONS + ) + } } } @@ -513,7 +520,6 @@ class GitRepoActivity : CommonActivity(), GitPreferences { fragment.repoCheckComplete(e) } - override fun start(totalTasks: Int) { publishProgress(CloneProgressUpdate(totalTasks, true)) }