コード例 #1
0
        protected override void OnResume()
        {
            base.OnResume();

            UpdateCorrelationId(null);
            LogUtils.LogMessage(LogSeverity.INFO, $"User opened InfectionStatus", null);

            _permissionUtils.SubscribePermissionsMessagingCenter(this,
                                                                 o =>
            {
                if (!_permissionUtils.AreAllPermissionsGranted())
                {
                    PreventMultiplePermissionsDialogsForAction(
                        _permissionUtils.HasPermissions);
                }
            });

            UpdateUI();

            _viewModel.NewMessagesIconVisibilityChanged += OnNewMessagesIconVisibilityChanged;
            OnMessageStatusChanged();

            if (!(_positiveButton is null))
            {
                AdjustLines(_dontShowButton, _positiveButton, _negativeButton);
            }
        }
コード例 #2
0
        protected override void OnResume()
        {
            base.OnResume();

            _permissionUtils.SubscribePermissionsMessagingCenter(this,
                                                                 o =>
            {
                if (!_permissionUtils.AreAllPermissionsGranted())
                {
                    PreventMultiplePermissionsDialogsForAction(
                        _permissionUtils.HasPermissions);
                }
            });

            UpdateUI();

            _viewModel.NewMessagesIconVisibilityChanged += OnNewMessagesIconVisibilityChanged;
            OnMessageStatusChanged();
        }