Commit 815d498a authored by 陈前's avatar 陈前

String 整理 统计

parent f883af19
...@@ -39,10 +39,10 @@ public class OtherSelectPresenter extends OtherSelectContract.Presenter { ...@@ -39,10 +39,10 @@ public class OtherSelectPresenter extends OtherSelectContract.Presenter {
}) })
.subscribe(osskus -> { .subscribe(osskus -> {
if (osskus.getTotalRow() == 0) { if (osskus.getTotalRow() == 0) {
ToastUtils.showShort("没有搜到当前商品,请重新输入"); ToastUtils.showShort("no find");
mView.loadOssku(osskus, nowPageNumber == 1,keyword); mView.loadOssku(osskus, nowPageNumber == 1, keyword);
}else { } else {
mView.loadOssku(osskus, nowPageNumber == 1,keyword); mView.loadOssku(osskus, nowPageNumber == 1, keyword);
} }
//判断是否能加载更多 //判断是否能加载更多
......
...@@ -126,7 +126,7 @@ public class OtherListFragment extends BaseFragment<OtherSelectPresenter, Fragme ...@@ -126,7 +126,7 @@ public class OtherListFragment extends BaseFragment<OtherSelectPresenter, Fragme
public void search(String string) { public void search(String string) {
KeyboardUtils.hideSoftInput(getActivity()); KeyboardUtils.hideSoftInput(getActivity());
if (string.length() == 0) { if (string.length() == 0) {
ToastUtils.showShort("请输入搜索内容"); ToastUtils.showShort(getActivity().getString(R.string.replenishment_toast_seachText));
return; return;
} }
......
...@@ -86,7 +86,7 @@ public class SearchBar extends ConstraintLayout { ...@@ -86,7 +86,7 @@ public class SearchBar extends ConstraintLayout {
if (i == EditorInfo.IME_ACTION_SEARCH) { if (i == EditorInfo.IME_ACTION_SEARCH) {
String str = mViewBinding.etSearch.getText().toString(); String str = mViewBinding.etSearch.getText().toString();
if (StringUtils.isEmpty(str) && !isEmptyEnabled) { if (StringUtils.isEmpty(str) && !isEmptyEnabled) {
ToastUtils.showShort("请输入搜索内容"); ToastUtils.showShort(getActivity().getString(R.string.replenishment_toast_seachText));
return true; return true;
} }
KeyboardUtils.hideSoftInput(mViewBinding.etSearch); KeyboardUtils.hideSoftInput(mViewBinding.etSearch);
...@@ -97,7 +97,7 @@ public class SearchBar extends ConstraintLayout { ...@@ -97,7 +97,7 @@ public class SearchBar extends ConstraintLayout {
mViewBinding.tvSearch.setOnClickListener(view -> { mViewBinding.tvSearch.setOnClickListener(view -> {
String str = mViewBinding.etSearch.getText().toString(); String str = mViewBinding.etSearch.getText().toString();
if (StringUtils.isEmpty(str) && !isEmptyEnabled) { if (StringUtils.isEmpty(str) && !isEmptyEnabled) {
ToastUtils.showShort("请输入搜索内容"); ToastUtils.showShort(getActivity().getString(R.string.replenishment_toast_seachText));
this.showSoftInput(); this.showSoftInput();
return; return;
} }
......
...@@ -74,6 +74,6 @@ ...@@ -74,6 +74,6 @@
<string name="ticket_default_lostVip">Lost Vip</string> <string name="ticket_default_lostVip">Lost Vip</string>
<string name="bale_toast_noSearch">not find</string>
</resources> </resources>
...@@ -74,6 +74,9 @@ ...@@ -74,6 +74,9 @@
<string name="ticket_default_lostVip">流失会员</string> <string name="ticket_default_lostVip">流失会员</string>
<string name="bale_toast_noSearch">没有搜到当前商品,请重新输入</string>
</resources> </resources>
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