Commit 70203235 authored by fallenstardust's avatar fallenstardust

竖屏卡查支持输入数字搜索

parent 710d3c2d
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
4.拖动服务器房间置顶即可设置为偏好房间 4.拖动服务器房间置顶即可设置为偏好房间
(方便快捷加房); (方便快捷加房);
5.改变加入新版首发群的方式; 5.改变加入新版首发群的方式;
6.竖屏卡查支持数字卡密搜索;
</pre> </pre>
<ul> <ul>
<li style="color:#ffffff">3.2.0</li> <li style="color:#ffffff">3.2.0</li>
......
...@@ -8,7 +8,7 @@ android { ...@@ -8,7 +8,7 @@ android {
applicationId "cn.garymb.ygomobile" applicationId "cn.garymb.ygomobile"
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 22 targetSdkVersion 22
versionCode 32010527 versionCode 32010529
versionName "3.2.1" versionName "3.2.1"
flavorDimensions "versionCode" flavorDimensions "versionCode"
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true
......
...@@ -33,7 +33,7 @@ class CardSearchInfo { ...@@ -33,7 +33,7 @@ class CardSearchInfo {
} }
if (!TextUtils.isEmpty(word)) { if (!TextUtils.isEmpty(word)) {
if (!((card.Name != null && card.Name.contains(word)) if (!((card.Name != null && card.Name.contains(word))
|| (card.Desc != null && card.Desc.contains(word)))) { || (card.Desc != null && card.Desc.contains(word))||(card.Code != 0 && card.Code==Integer.parseInt(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