public override Task Initialize()
        {
            var enabledObservable = ForceItemSelection
                ? SelectCalendar.Elements
                                    .Select(_ => SelectedCalendarIds.Any())
                                    .DistinctUntilChanged()
                : Observable.Return(true);

            Done = rxActionFactory.FromAsync(done, enabledObservable);

            return(base.Initialize());
        }
        public override async Task Initialize(bool forceItemSelection)
        {
            PermissionGranted = await permissionsChecker.CalendarPermissionGranted;

            if (!PermissionGranted)
            {
                UserPreferences.SetEnabledCalendars();
            }

            await base.Initialize(forceItemSelection);

            calendarListVisible = PermissionGranted && SelectedCalendarIds.Any();
            calendarListVisibleSubject.OnNext(calendarListVisible);
        }
Example #3
0
        public async override Task Initialize()
        {
            PermissionGranted = await permissionsService.CalendarPermissionGranted;

            if (!PermissionGranted)
            {
                UserPreferences.SetEnabledCalendars();
            }

            await base.Initialize();

            calendarListVisible = PermissionGranted && SelectedCalendarIds.Any();
            calendarListVisibleSubject.OnNext(calendarListVisible);
        }