From 969f29e2e96c6dfef570bc9de924da30e463b986 Mon Sep 17 00:00:00 2001 From: sk Date: Tue, 6 Jun 2023 16:55:20 +0200 Subject: [PATCH] support string res for small text item --- .../joinmastodon/android/fragments/SettingsFragment.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/SettingsFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/SettingsFragment.java index a36b18a5d..b495b1316 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/SettingsFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/SettingsFragment.java @@ -835,7 +835,11 @@ public class SettingsFragment extends MastodonToolbarFragment implements Provide } private class SmallTextItem extends Item { - private String text; + private final String text; + + public SmallTextItem(@StringRes int text) { + this.text = getString(text); + } public SmallTextItem(String text) { this.text = text;