|
|
@@ -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;
|
|
|
- }
|
|
|
}
|
|
|
}
|