Skip to content

Commit

Permalink
AbResult中result单词拼写错误修正
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoqp2010 committed Nov 24, 2014
1 parent bd619ee commit 0a65391
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
Binary file modified AndBase/bin/andbase.jar
Binary file not shown.
Binary file modified AndBase/bin/classes/com/ab/util/AbMathUtil.class
Binary file not shown.
4 changes: 2 additions & 2 deletions AndBase/src/com/ab/model/AbResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
public class AbResult {

/** 返回码:成功. */
public static final int RESULR_OK = 0;
public static final int RESULT_OK = 0;

/** 返回码:失败. */
public static final int RESULR_ERROR = -1;
public static final int RESULT_ERROR = -1;

/** 结果code. */
private int resultCode;
Expand Down
14 changes: 14 additions & 0 deletions AndBase/src/com/ab/util/AbMathUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

import java.math.BigDecimal;

import android.graphics.PointF;


// TODO: Auto-generated Javadoc

Expand Down Expand Up @@ -473,6 +475,18 @@ public static boolean circleAtRect(double x,double y,double r,double x1,double y
return false;
}
}


/**
*
* 描述:获取两点间的距离.
* @param p1
* @param p2
* @return
*/
public static double getDistance(PointF p1,PointF p2) {
return getDistance(p1.x,p1.y,p2.x,p2.y);
}

/**
*
Expand Down
2 changes: 1 addition & 1 deletion AndBaseDemo/src/com/andbase/login/FindPwdActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public void update(Object obj) {
AbResult mAbResult = (AbResult)obj;
if(mAbResult != null){
AbToastUtil.showToast(FindPwdActivity.this,mAbResult.getResultMessage());
if(mAbResult.getResultCode()==AbResult.RESULR_OK){
if(mAbResult.getResultCode()==AbResult.RESULT_OK){
finish();
}
}
Expand Down

0 comments on commit 0a65391

Please sign in to comment.