Browse Source

[로딩][Bug] 오류 수정

hyodong.min 6 years ago
parent
commit
a4bdd84127

+ 8 - 6
app/src/main/java/kr/co/zumo/app/lifeplus/view/animation/Loading.java

@@ -93,17 +93,19 @@ public class Loading {
       disposable.dispose();
       disposable = null;
     }
+    if (null != animation) {
+      animation.stopAnimation();
+      animation = null;
+    }
+    if (null != imageView) {
+      imageView.setLayerType(View.LAYER_TYPE_NONE, null);
+      imageView = null;
+    }
     if (null != view) {
       FrameLayout frameLayout = activity.findViewById(android.R.id.content);
       frameLayout.removeView(view);
-      imageView.setLayerType(View.LAYER_TYPE_NONE, null);
-      imageView = null;
       view = null;
       activity = null;
     }
-    if (null != animation) {
-      animation.stopAnimation();
-      animation = null;
-    }
   }
 }