Exemplo n.º 1
0
        private void onTemporalInconsistency(TemporalInconsistency temporalInconsistency)
        {
            canDismiss = false;
            toast?.Cancel();
            toast = null;

            var message = inconsistencyMessages[temporalInconsistency];

            toast = Toast.MakeText(this, message, ToastLength.Short);
            toast.Show();
        }
        private void onTemporalInconsistency(TemporalInconsistency temporalInconsistency)
        {
            if (toast != null)
            {
                toast.Cancel();
            }

            var messageResourceId = inconsistencyMessages[temporalInconsistency];
            var message           = Resources.GetString(messageResourceId);

            toast = Toast.MakeText(Context, message, ToastLength.Short);
            toast.Show();
        }