Skip to content

Commit

Permalink
PermissionsIntroFragment: take jtx Board and tasks.org permissions in…
Browse files Browse the repository at this point in the history
…to account (#450)
  • Loading branch information
rfc2822 authored Oct 17, 2023
1 parent 5ae70cb commit 8ffed42
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ class PermissionsIntroFragment : Fragment() {

override fun getOrder(context: Context): Int {
// show PermissionsFragment as intro fragment when no permissions are granted
val permissions = CONTACT_PERMISSIONS + CALENDAR_PERMISSIONS + TaskProvider.PERMISSIONS_OPENTASKS
val permissions = CONTACT_PERMISSIONS + CALENDAR_PERMISSIONS +
TaskProvider.PERMISSIONS_JTX +
TaskProvider.PERMISSIONS_OPENTASKS +
TaskProvider.PERMISSIONS_TASKS_ORG
return if (PermissionUtils.haveAnyPermission(context, permissions))
IntroFragmentFactory.DONT_SHOW
else
Expand Down

0 comments on commit 8ffed42

Please sign in to comment.