support string res for small text item

This commit is contained in:
sk 2023-06-06 16:55:20 +02:00
parent 68921d0f0b
commit 969f29e2e9
1 changed files with 5 additions and 1 deletions

View File

@ -835,7 +835,11 @@ public class SettingsFragment extends MastodonToolbarFragment implements Provide
} }
private class SmallTextItem extends Item { 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) { public SmallTextItem(String text) {
this.text = text; this.text = text;