Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
Signed-off-by: Arnau Mora <[email protected]>
  • Loading branch information
ArnyminerZ committed Aug 21, 2023
1 parent 8ad10d9 commit 5ccd4b6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,10 @@ class CalendarListActivity: AppCompatActivity() {
*/
fun checkSyncSettings() = viewModelScope.launch(Dispatchers.IO) {
val haveNotificationPermission = PermissionUtils.haveNotificationPermission(getApplication())
askForCalendarPermission.postValue(!haveNotificationPermission)
askForNotificationPermission.postValue(!haveNotificationPermission)

val haveCalendarPermission = PermissionUtils.haveCalendarPermissions(getApplication())
askForNotificationPermission.postValue(!haveCalendarPermission)
askForCalendarPermission.postValue(!haveCalendarPermission)

val shouldWhitelistApp = if (Build.VERSION.SDK_INT >= 23) {
val powerManager = getApplication<Application>().getSystemService<PowerManager>()
Expand Down

0 comments on commit 5ccd4b6

Please sign in to comment.