Browse Source

moved up onDraw super call

Andy Scherzinger 9 years ago
parent
commit
9eb6dc14ec
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/com/owncloud/android/ui/preview/ImageViewCustom.java

+ 2 - 3
src/com/owncloud/android/ui/preview/ImageViewCustom.java

@@ -58,10 +58,9 @@ public class ImageViewCustom extends ImageView {
             //
             setLayerType(View.LAYER_TYPE_SOFTWARE, null);
         }
+        super.onDraw(canvas);
 
-        if(mGifMovie == null) {
-            super.onDraw(canvas);
-        } else {
+        if(mGifMovie != null) {
             long nowTick = android.os.SystemClock.uptimeMillis();
             if (mLastTick == 0) {
                 mMovieRunDuration = 0;