Allow 5 preview lines

This commit is contained in:
M66B
2021-02-11 16:24:32 +01:00
parent abc8c6ac4e
commit 00487655db
5 changed files with 27 additions and 7 deletions

View File

@@ -113,6 +113,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
private SwitchCompat swPreview;
private SwitchCompat swPreviewItalic;
private Spinner spPreviewLines;
private TextView tvPreviewLinesHint;
private SwitchCompat swAddresses;
private EditText etMessageZoom;
@@ -216,6 +217,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
swPreview = view.findViewById(R.id.swPreview);
swPreviewItalic = view.findViewById(R.id.swPreviewItalic);
spPreviewLines = view.findViewById(R.id.spPreviewLines);
tvPreviewLinesHint = view.findViewById(R.id.tvPreviewLinesHint);
swAddresses = view.findViewById(R.id.swAddresses);
etMessageZoom = view.findViewById(R.id.etMessageZoom);
swOverviewMode = view.findViewById(R.id.swOverviewMode);
@@ -661,6 +663,8 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
}
});
tvPreviewLinesHint.setText(getString(R.string.title_advanced_preview_lines_hint, NF.format(HtmlHelper.PREVIEW_SIZE)));
spPreviewLines.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> adapterView, View view, int position, long id) {