Added entered text title

pull/215/head
M66B 7 months ago
parent 6925385074
commit 1c7277d4e8

@ -2654,7 +2654,10 @@ public class FragmentCompose extends FragmentBase {
else {
PopupMenuLifecycle popupMenu = new PopupMenuLifecycle(getContext(), getViewLifecycleOwner(), anchor);
SpannableStringBuilder ssb = new SpannableStringBuilderEx(getString(R.string.title_advanced_default_prompt));
String title = getString(etBody.length() == 0
? R.string.title_advanced_default_prompt
: R.string.title_advanced_entered_text);
SpannableStringBuilder ssb = new SpannableStringBuilderEx(title);
ssb.setSpan(new RelativeSizeSpan(HtmlHelper.FONT_SMALL), 0, ssb.length(), 0);
popupMenu.getMenu()
.add(Menu.NONE, 1, 1, ssb)

@ -893,6 +893,7 @@
<string name="title_advanced_summarize_prompt">Summarize prompt</string>
<string name="title_advanced_answer_prompt">Answer prompt</string>
<string name="title_advanced_default_prompt">Default prompt</string>
<string name="title_advanced_entered_text">Entered text</string>
<string name="title_advanced_sdcard">I want to use an SD card</string>
<string name="title_advanced_watchdog">Periodically check if FairEmail is still active</string>
<string name="title_advanced_updates">Check for GitHub updates</string>

Loading…
Cancel
Save