diff --git a/TMessagesProj/src/main/java/xyz/nextalone/nnngram/activity/GeneralSettingActivity.java b/TMessagesProj/src/main/java/xyz/nextalone/nnngram/activity/GeneralSettingActivity.java index 1b9bc8c92c..66db02b0f1 100644 --- a/TMessagesProj/src/main/java/xyz/nextalone/nnngram/activity/GeneralSettingActivity.java +++ b/TMessagesProj/src/main/java/xyz/nextalone/nnngram/activity/GeneralSettingActivity.java @@ -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; }