/**
	     * Cancels an old countdown and deletes the dataItem.
	     *
	     * @param notifyMgr the notification manager.
	     */
		private void CancelCountdown (NotificationManager notifyManager)
		{
			notifyManager.Cancel (Constants.NOTIFICATION_TIMER_EXPIRED);
		}
Пример #2
0
        private bool ClearNotifications()
        {
            // Notification Manager
            _notificationManager = (NotificationManager)GetSystemService(NotificationService);

            _notificationManager.Cancel(NotifyPassword);
            _notificationManager.Cancel(NotifyUsername);
            _notificationManager.Cancel(NotifyKeyboard);
            _notificationManager.Cancel(NotifyCombined);
            _numElementsToWaitFor = 0;
            bool hadKeyboardData = ClearKeyboard(false); //do not broadcast if the keyboard was changed
            return hadKeyboardData;
        }