From cde642186bdfa7b4afe51f3003416a73c51a39c1 Mon Sep 17 00:00:00 2001 From: Nedyalko Nikolov Date: Mon, 31 Oct 2016 18:04:14 +0200 Subject: [PATCH] Fixed issue with image rotation. --- tns-core-modules/ui/image/image.android.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tns-core-modules/ui/image/image.android.ts b/tns-core-modules/ui/image/image.android.ts index 3027014c7..802abfb45 100644 --- a/tns-core-modules/ui/image/image.android.ts +++ b/tns-core-modules/ui/image/image.android.ts @@ -110,11 +110,9 @@ export class Image extends imageCommon.Image { if (!nativeImage) { return; } - - let rotation = nativeImage.rotationAngle ? nativeImage.rotationAngle : 0 ; - if (rotation > 0) { - this.android.setRotationAngle(rotation); - } + + let rotation = nativeImage.rotationAngle ? nativeImage.rotationAngle : 0; + this.android.setRotationAngle(rotation); this.android.setImageBitmap(nativeImage.android); }