Skip to content

Commit

Permalink
fix: crash in GeneralSetting after DeepLX selected
Browse files Browse the repository at this point in the history
Signed-off-by: Next Alone <[email protected]>
  • Loading branch information
NextAlone committed Nov 4, 2024
1 parent 5158c6e commit 79c2ce9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,11 @@ public void onBindViewHolder(RecyclerView.ViewHolder holder, int position, boole
} else if (position == drawerListRow) {
textCell.setText(LocaleController.getString("drawerList", R.string.drawerList), false);
} else if (position == deepLxApiRow) {
textCell.setTextAndValue(LocaleController.getString(R.string.DeepLxApi), Config.getDeepLxApi().substring(0, 25) + "...", payload, true);
String value = Config.getDeepLxApi();
if (value.length() > 25) {
value = value.substring(0, 25) + "...";
}
textCell.setTextAndValue(LocaleController.getString(R.string.DeepLxApi), value, payload, true);
}
break;
}
Expand Down

0 comments on commit 79c2ce9

Please sign in to comment.