diff --git a/app/src/main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java b/app/src/main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java index adb64f649..de70ce38a 100644 --- a/app/src/main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java +++ b/app/src/main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java @@ -1156,6 +1156,7 @@ public class ComposeAdapter extends RecyclerView.Adapter { + if (instanceInfo.configuration.media_attachments.supported_mime_types != null) { if (instanceInfo.getMimeTypeAudio().size() == 0) { holder.binding.buttonAttachAudio.setEnabled(false); @@ -1171,6 +1172,7 @@ public class ComposeAdapter extends RecyclerView.Adapter holder.binding.attachmentChoicesPanel.setVisibility(View.GONE)); - holder.binding.buttonVisibility.setOnClickListener(v -> holder.binding.visibilityPanel.setVisibility(View.VISIBLE)); + holder.binding.buttonVisibility.setOnClickListener(v -> { + holder.binding.visibilityPanel.setVisibility(View.VISIBLE); + holder.binding.buttonVisibility.setChecked(false); + }); holder.binding.buttonCloseVisibilityPanel.setOnClickListener(v -> holder.binding.visibilityPanel.setVisibility(View.GONE)); holder.binding.buttonVisibilityDirect.setOnClickListener(v -> { holder.binding.visibilityPanel.setVisibility(View.GONE); @@ -1382,6 +1387,7 @@ public class ComposeAdapter extends RecyclerView.Adapter { + holder.binding.buttonLanguage.setChecked(false); Set storedLanguages = sharedpreferences.getStringSet(context.getString(R.string.SET_SELECTED_LANGUAGE), null); String[] codesArr = new String[0]; String[] languagesArr = new String[0];