toast context判断 禁止context.getString 操作

This commit is contained in:
kehaoyuan
2018-02-03 10:16:27 +08:00
parent bf51be498b
commit d29ccc0aca
28 changed files with 49 additions and 54 deletions

View File

@ -23,9 +23,7 @@ import com.gh.gamecenter.entity.ToolBoxEntity;
import com.gh.gamecenter.manager.UserManager;
import com.gh.gamecenter.retrofit.Response;
import com.gh.gamecenter.retrofit.RetrofitManager;
import com.google.gson.Gson;
import com.lightgame.adapter.BaseRecyclerAdapter;
import com.lightgame.config.CommonDebug;
import com.lightgame.utils.Util_System_Keyboard;
import com.lightgame.utils.Utils;
@ -235,7 +233,7 @@ public class ToolBoxRvAdapter extends BaseRecyclerAdapter {
public void onClick(View v) {
if (TextUtils.isEmpty(viewHolder.searchEt.getText().toString())) {
Utils.toast(mContext, mContext.getString(R.string.search_hint));
Utils.toast(mContext, R.string.search_hint);
return;
}
mSearchListener.search(true, viewHolder.searchEt.getText().toString());