多语言切换

This commit is contained in:
18401019693
2023-04-18 10:30:55 +08:00
parent bfbbe54308
commit 098ef7aa36
137 changed files with 413 additions and 414 deletions

View File

@@ -86,7 +86,7 @@ public class TieZhiAdapter extends RecyclerView.Adapter<TieZhiAdapter.Vh> {
TiUtils.unzip(file, targetDir);
bean.setDownloadSuccess(mContext);
} catch (Exception e) {
ToastUtil.show(WordUtil.getString(R.string.tiezhi_download_failed));
ToastUtil.show(mContext.getString(R.string.tiezhi_download_failed));
bean.setDownloading(false);
} finally {
file.delete();
@@ -103,7 +103,7 @@ public class TieZhiAdapter extends RecyclerView.Adapter<TieZhiAdapter.Vh> {
@Override
public void onError(Throwable e) {
ToastUtil.show(WordUtil.getString(R.string.tiezhi_download_failed));
ToastUtil.show(mContext.getString(R.string.tiezhi_download_failed));
bean.setDownloading(false);
notifyItemChanged(position, Constants.PAYLOAD);
mLoadingTaskMap.remove(position);