Commit 6eedf6d6 authored by fallenstardust's avatar fallenstardust

修复关键词搜索&3.3.0

parent 70203235
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
特别感谢: 菜菜,尸体,废话多,龙道香姐,晓L,幻兽L 的支持与努力. 特别感谢: 菜菜,尸体,废话多,龙道香姐,晓L,幻兽L 的支持与努力.
</pre> </pre>
<ul> <ul>
<li style="color:#ffff00">3.2.1</li> <li style="color:#ffff00">3.3.0</li>
</ul> </ul>
<pre> <pre>
更新: 更新:
......
...@@ -8,8 +8,8 @@ android { ...@@ -8,8 +8,8 @@ android {
applicationId "cn.garymb.ygomobile" applicationId "cn.garymb.ygomobile"
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 22 targetSdkVersion 22
versionCode 32010529 versionCode 33000529
versionName "3.2.1" versionName "3.3.0"
flavorDimensions "versionCode" flavorDimensions "versionCode"
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true
ndk { ndk {
......
...@@ -32,8 +32,15 @@ class CardSearchInfo { ...@@ -32,8 +32,15 @@ class CardSearchInfo {
return false; return false;
} }
if (!TextUtils.isEmpty(word)) { if (!TextUtils.isEmpty(word)) {
while(word.length()!=0){
if(word.startsWith("0")){
word=word.substring(1,word.length());
}else{
break;
}
}
if (!((card.Name != null && card.Name.contains(word)) if (!((card.Name != null && card.Name.contains(word))
|| (card.Desc != null && card.Desc.contains(word))||(card.Code != 0 && card.Code==Integer.parseInt(word)))) { || (card.Desc != null && card.Desc.contains(word))||(card.Code != 0 && (card.Code+"").equals(word)))) {
return false; return false;
} }
} else if (!TextUtils.isEmpty(prefixWord) && !TextUtils.isEmpty(suffixWord)) { } else if (!TextUtils.isEmpty(prefixWord) && !TextUtils.isEmpty(suffixWord)) {
......
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