Skip to content

Commit

Permalink
Merge branch 'UmutComlekci-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandarDev committed Oct 11, 2018
2 parents 0ac533d + 402dab6 commit 46c634f
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.4.1] - 2018-10-11
### Fixed
- Fixed problem where message with animation would trigger dismiss event before disapearing

## [1.4.0] - 2018-06-09
### Added
- Added `WithAdditionalContent` feature
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,28 @@ private static Action<INotificationMessage> DismissBefore(
{
return call =>
{
builder.Manager.Dismiss(builder.Message);
if (builder.Message is INotificationAnimation animatableMessage)
{
var animation = animatableMessage.AnimationOut;
if (animation != null &&
animatableMessage.Animates &&
animatableMessage.AnimatableElement != null &&
animatableMessage.AnimationOutDependencyProperty != null)
{
animation.Completed += (s, a) =>
{
builder.Manager.Dismiss(builder.Message);
};
}
else
{
builder.Manager.Dismiss(builder.Message);
}
}
else
{
builder.Manager.Dismiss(builder.Message);
}
callback?.Invoke(builder.Message);
};
}
Expand All @@ -251,7 +272,28 @@ private static Action<INotificationMessageButton> DismissBefore(
{
return button =>
{
builder.Manager.Dismiss(builder.Message);
if (builder.Message is INotificationAnimation animatableMessage)
{
var animation = animatableMessage.AnimationOut;
if (animation != null &&
animatableMessage.Animates &&
animatableMessage.AnimatableElement != null &&
animatableMessage.AnimationOutDependencyProperty != null)
{
animation.Completed += (s, a) =>
{
builder.Manager.Dismiss(builder.Message);
};
}
else
{
builder.Manager.Dismiss(builder.Message);
}
}
else
{
builder.Manager.Dismiss(builder.Message);
}
callback?.Invoke(button);
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.4.0.0")]
[assembly: AssemblyFileVersion("1.4.0.0")]
[assembly: AssemblyVersion("1.4.1.0")]
[assembly: AssemblyFileVersion("1.4.1.0")]

0 comments on commit 46c634f

Please sign in to comment.