force left alignment with maths

peertube_integration
Thomas 2 years ago
parent ac9eb64368
commit cd40704d0f

@ -866,8 +866,10 @@ public class ComposeActivity extends BaseActivity implements ComposeAdapter.Mana
} else {
Toasty.info(ComposeActivity.this, getString(R.string.toot_error_no_content), Toasty.LENGTH_SHORT).show();
}
statusDrafts.get(statusDrafts.size() - 1).submitted = false;
composeAdapter.notifyItemChanged(statusList.size() - 1);
if (statusDrafts.size() > 0) {
statusDrafts.get(statusDrafts.size() - 1).submitted = false;
composeAdapter.notifyItemChanged(statusList.size() - 1);
}
};
mainHandler.post(myRunnable);
return;
@ -967,7 +969,7 @@ public class ComposeActivity extends BaseActivity implements ComposeAdapter.Mana
boolean warnOnly = sharedpreferences.getBoolean(getString(R.string.SET_MANDATORY_ALT_TEXT_WARN), true);
if (checkAlt) {
for (Status status : statusDraft.statusDraftList) {
if (status.media_attachments != null && status.media_attachments.size() > 0) {
if (status != null && status.media_attachments != null && status.media_attachments.size() > 0) {
for (Attachment attachment : status.media_attachments) {
if (attachment.description == null || attachment.description.trim().isEmpty()) {
return warnOnly ? -2 : -1;

@ -90,6 +90,9 @@ public class FragmentLoginPickInstanceMastodon extends Fragment implements Insta
binding.regCategory.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
if (requireActivity().isFinishing() || !isAdded()) {
return;
}
if (itemA[position].compareTo("custom") != 0) {
JoinInstancesVM joinInstancesVM = new ViewModelProvider(requireActivity()).get(JoinInstancesVM.class);
joinInstancesVM.getInstances(itemA[position]).observe(requireActivity(), instances -> {

@ -69,7 +69,7 @@
</script>
<div style="text-align: center;">
<div style="text-align: left;">
<span id='math'></span>
</div>
</body>

@ -2,7 +2,7 @@ Added:
- Visual indicator when fetching missing messages
Changed:
- Maths formula aligned to the left
Fixed:
- Some crashes
Loading…
Cancel
Save