toast context判断 禁止context.getString 操作
This commit is contained in:
@ -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());
|
||||
|
||||
Reference in New Issue
Block a user