mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 16:43:26 +02:00
Add hyperlink to style toolbar
This commit is contained in:
@@ -264,6 +264,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
private View vwAnchor;
|
||||
private TextViewAutoCompleteAction etSearch;
|
||||
private HorizontalScrollView style_bar;
|
||||
private ImageButton ibLink;
|
||||
private BottomNavigationView media_bar;
|
||||
private BottomNavigationView bottom_navigation;
|
||||
private ContentLoadingProgressBar pbWait;
|
||||
@@ -395,6 +396,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
vwAnchor = view.findViewById(R.id.vwAnchor);
|
||||
etSearch = view.findViewById(R.id.etSearch);
|
||||
style_bar = view.findViewById(R.id.style_bar);
|
||||
ibLink = view.findViewById(R.id.menu_link);
|
||||
media_bar = view.findViewById(R.id.media_bar);
|
||||
bottom_navigation = view.findViewById(R.id.bottom_navigation);
|
||||
|
||||
@@ -885,6 +887,14 @@ public class FragmentCompose extends FragmentBase {
|
||||
|
||||
StyleHelper.wire(getViewLifecycleOwner(), view, etBody);
|
||||
|
||||
ibLink.setVisibility(View.VISIBLE);
|
||||
ibLink.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
onActionLink();
|
||||
}
|
||||
});
|
||||
|
||||
media_bar.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {
|
||||
@Override
|
||||
public boolean onNavigationItemSelected(@NonNull MenuItem item) {
|
||||
|
||||
@@ -139,6 +139,8 @@ public class StyleHelper {
|
||||
else if (id == R.id.menu_style_code)
|
||||
v.setVisibility(BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
|
||||
}
|
||||
|
||||
view.findViewById(R.id.menu_link).setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
static TextWatcher getTextWatcher(EditText etBody) {
|
||||
|
||||
Reference in New Issue
Block a user