Change-Id: I75275150a919a85131995a03c0bb240eda3133fc
SavedRotationCommand = new Command<double>((rotation) =>
{
- CurrentImage.SavedRotation = rotation;
+ if (rotation == Convert.ToDouble(-1))
+ {
+ /// Initialize the saved rotation
+ foreach (var item in ImageInfoList)
+ {
+ item.SavedRotation = 0;
+ }
+ }
+ else
+ {
+ CurrentImage.SavedRotation = rotation;
+ }
});
ChangeSortOptionCommand = new Command<string>((opt) =>
{
base.OnDisappearing();
- SavedRotationCommand?.Execute(default(double));
+ SavedRotationCommand?.Execute(Convert.ToDouble(-1));
}
}
}