mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-12 17:12:40 +01:00
DroidFish: Fixed a crash in the tour guide in android 3.0.
This commit is contained in:
@@ -6,7 +6,6 @@ import android.graphics.Canvas;
|
|||||||
import android.graphics.Paint;
|
import android.graphics.Paint;
|
||||||
import android.graphics.Path;
|
import android.graphics.Path;
|
||||||
import android.graphics.Path.FillType;
|
import android.graphics.Path.FillType;
|
||||||
import android.graphics.Point;
|
|
||||||
import android.support.v4.view.MotionEventCompat;
|
import android.support.v4.view.MotionEventCompat;
|
||||||
import android.text.TextPaint;
|
import android.text.TextPaint;
|
||||||
import android.util.AttributeSet;
|
import android.util.AttributeSet;
|
||||||
@@ -23,7 +22,6 @@ import java.util.ArrayList;
|
|||||||
*/
|
*/
|
||||||
public class FrameLayoutWithHole extends FrameLayout {
|
public class FrameLayoutWithHole extends FrameLayout {
|
||||||
private TextPaint mTextPaint;
|
private TextPaint mTextPaint;
|
||||||
private Activity mActivity;
|
|
||||||
private TourGuide.MotionType mMotionType;
|
private TourGuide.MotionType mMotionType;
|
||||||
|
|
||||||
private Path mPath;
|
private Path mPath;
|
||||||
@@ -76,7 +74,6 @@ public class FrameLayoutWithHole extends FrameLayout {
|
|||||||
|
|
||||||
public FrameLayoutWithHole(Activity context, View view, TourGuide.MotionType motionType, Overlay overlay) {
|
public FrameLayoutWithHole(Activity context, View view, TourGuide.MotionType motionType, Overlay overlay) {
|
||||||
super(context);
|
super(context);
|
||||||
mActivity = context;
|
|
||||||
mViewHole = view;
|
mViewHole = view;
|
||||||
init(null, 0);
|
init(null, 0);
|
||||||
enforceMotionType();
|
enforceMotionType();
|
||||||
@@ -148,8 +145,8 @@ public class FrameLayoutWithHole extends FrameLayout {
|
|||||||
|
|
||||||
if (mAnimatorSetArrayList != null && mAnimatorSetArrayList.size() > 0){
|
if (mAnimatorSetArrayList != null && mAnimatorSetArrayList.size() > 0){
|
||||||
for(int i=0;i<mAnimatorSetArrayList.size();i++){
|
for(int i=0;i<mAnimatorSetArrayList.size();i++){
|
||||||
mAnimatorSetArrayList.get(i).end();
|
|
||||||
mAnimatorSetArrayList.get(i).removeAllListeners();
|
mAnimatorSetArrayList.get(i).removeAllListeners();
|
||||||
|
mAnimatorSetArrayList.get(i).end();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user