Skip to content

Commit

Permalink
see longer API key preview in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
DevEmperor committed Nov 18, 2024
1 parent f33f0e9 commit ef13c73
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
apiKeyPreference.setSummaryProvider((Preference.SummaryProvider<EditTextPreference>) preference -> {
String key = preference.getText();
if (TextUtils.isEmpty(key)) return getString(R.string.wristassist_no_api_key);
if (key.length() <= 10) return key;
return key.substring(0, 10) + "...";
if (key.length() <= 40) return key;
return key.substring(0, 40) + "...";
});

apiKeyPreference.setOnBindEditTextListener(editText -> {
Expand Down

0 comments on commit ef13c73

Please sign in to comment.