Commit 8a01a00d authored by fallenstardust's avatar fallenstardust

CardSearchInfo.toString

parent acb4e937
...@@ -160,6 +160,24 @@ public class CardSearchInfo implements ICardFilter{ ...@@ -160,6 +160,24 @@ public class CardSearchInfo implements ICardFilter{
} }
} }
public String toString(){
return "CardSearchInfo{" +
"LimitType="+getLimitType() +
", Ot=" + getOt() +
", LimitName=" + getLimitName() +
", KeyWord=" + getKeyWord() +
", Attribute=" + getAttribute() +
", Level=" + getLevel() +
", PScale=" + getPscale() +
", Category=" + getCategory() +
", ATK=" + getAtk() +
", DEF=" + getDef() +
", LINK=" + getLinkKey() +
", Race=" + getTypes() +
", SetCode=" + getSetcode() +
'}';
}
public static boolean containsIgnoreCase(String src, String what) { public static boolean containsIgnoreCase(String src, String what) {
// https://stackoverflow.com/a/25379180 // https://stackoverflow.com/a/25379180
final int length = what.length(); final int length = what.length();
......
...@@ -4,6 +4,7 @@ package cn.garymb.ygomobile.ui.cards; ...@@ -4,6 +4,7 @@ package cn.garymb.ygomobile.ui.cards;
import android.content.Context; import android.content.Context;
import android.graphics.Color; import android.graphics.Color;
import android.text.TextUtils; import android.text.TextUtils;
import android.util.Log;
import android.view.View; import android.view.View;
import android.view.inputmethod.EditorInfo; import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputMethodManager; import android.view.inputmethod.InputMethodManager;
...@@ -40,7 +41,7 @@ import ocgcore.enums.CardType; ...@@ -40,7 +41,7 @@ import ocgcore.enums.CardType;
import ocgcore.enums.LimitType; import ocgcore.enums.LimitType;
public class CardSearcher implements View.OnClickListener { public class CardSearcher implements View.OnClickListener {
private static final String TAG = "CardSearcher";
final String[] BtnVals = new String[9]; final String[] BtnVals = new String[9];
protected StringManager mStringManager; protected StringManager mStringManager;
protected LimitManager mLimitManager; protected LimitManager mLimitManager;
...@@ -585,6 +586,7 @@ public class CardSearcher implements View.OnClickListener { ...@@ -585,6 +586,7 @@ public class CardSearcher implements View.OnClickListener {
}) })
.linkKey(lineKey) .linkKey(lineKey)
.build(); .build();
Log.i(TAG,searchInfo.toString());
dataLoader.search(searchInfo); dataLoader.search(searchInfo);
lineKey = 0; lineKey = 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment