Skip to content

Commit d148d30

Browse files
committed
removed API key completely from settings preview
1 parent bd220c6 commit d148d30

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/src/main/java/net/devemperor/wristassist/activities/PreferencesFragment.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,8 @@ public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
6868
EditTextPreference apiKeyPreference = findPreference("net.devemperor.wristassist.api_key");
6969
if (apiKeyPreference != null) {
7070
apiKeyPreference.setSummaryProvider((Preference.SummaryProvider<EditTextPreference>) preference -> {
71-
String key = preference.getText();
72-
if (TextUtils.isEmpty(key)) return getString(R.string.wristassist_no_api_key);
73-
if (key.length() <= 40) return key;
74-
return key.substring(0, 40) + "...";
71+
if (TextUtils.isEmpty(preference.getText())) return getString(R.string.wristassist_no_api_key);
72+
return getString(R.string.wristassist_api_key_set);
7573
});
7674

7775
apiKeyPreference.setOnBindEditTextListener(editText -> {

app/src/main/res/values-de-rDE/strings.xml

+1
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,5 @@
9898
<string name="changelog_md_31">### Version 3.1.1 \n#### Neues GPT-4 Omni Mini Modell \nOpenAI hat ihr neues Modell GPT-4o mini veröffentlicht, das ihr kostengünstigstes kleines Modell ist – intelligenter und billiger als GPT-3.5 Turbo und hat auch Vision-Fähigkeiten. Das Modell hat einen Kontext von 128K und eine Wissensgrenze bis Oktober 2023. Du kannst in den Einstellungen zu diesem Modell wechseln, das 60% günstiger ist als GPT-3.5 Turbo. \n</string>
9999
<string name="wristassist_whisper_count" formatted="false">Transkriptionszeit:\n%1$d min, %2$d s</string>
100100
<string name="changelog_md_32">### Version 3.2.0 \n#### Whisper-Transkription hinzugefügt \nWenn du die Freisprech-Eingabe nutzt, verwendet WristAssist jetzt OpenAI Whisper, das zuverlässiger ist als die meisten Transkriptions-Engines von verschiedenen Tastaturen. \n#### Neue Chat-Modelle \nDie neuen o1-Modelle von OpenAI wurden hinzugefügt. \n#### Verschiedene Bugfixes und Designänderungen \n</string>
101+
<string name="wristassist_api_key_set">API-Schlüssel festgelegt</string>
101102
</resources>

app/src/main/res/values/strings.xml

+1
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,5 @@
107107
<string name="changelog_md_31">### Version 3.1.1 \n#### New GPT-4 Omni mini model \nOpenAI released their new model GPT-4o mini, which is their most cost-efficient small model that\'s smarter and cheaper than GPT-3.5 Turbo, and has vision capabilities. The model has 128K context and an October 2023 knowledge cutoff. You can switch to this model, which is 60% cheaper than GPT-3.5 Turbo, in the settings. \n</string>
108108
<string name="wristassist_whisper_count" formatted="false">Transcription time:\n%1$d min, %2$d s</string>
109109
<string name="changelog_md_32">### Version 3.2.0 \n#### Added Whisper transcription \nIf you use hands-free input, WristAssist now uses OpenAI Whisper, which works more reliable than most transcription engines from different keyboards. \n#### New chat models \nOpenAI\'s new o1 models were added in this release. \n#### Several bugfixes and design changes \n</string>
110+
<string name="wristassist_api_key_set">API key set</string>
110111
</resources>

0 commit comments

Comments
 (0)