mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +02:00
force left alignment with maths
This commit is contained in:
parent
ac9eb64368
commit
cd40704d0f
4 changed files with 10 additions and 5 deletions
|
@ -866,8 +866,10 @@ public class ComposeActivity extends BaseActivity implements ComposeAdapter.Mana
|
||||||
} else {
|
} else {
|
||||||
Toasty.info(ComposeActivity.this, getString(R.string.toot_error_no_content), Toasty.LENGTH_SHORT).show();
|
Toasty.info(ComposeActivity.this, getString(R.string.toot_error_no_content), Toasty.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
statusDrafts.get(statusDrafts.size() - 1).submitted = false;
|
if (statusDrafts.size() > 0) {
|
||||||
composeAdapter.notifyItemChanged(statusList.size() - 1);
|
statusDrafts.get(statusDrafts.size() - 1).submitted = false;
|
||||||
|
composeAdapter.notifyItemChanged(statusList.size() - 1);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
mainHandler.post(myRunnable);
|
mainHandler.post(myRunnable);
|
||||||
return;
|
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);
|
boolean warnOnly = sharedpreferences.getBoolean(getString(R.string.SET_MANDATORY_ALT_TEXT_WARN), true);
|
||||||
if (checkAlt) {
|
if (checkAlt) {
|
||||||
for (Status status : statusDraft.statusDraftList) {
|
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) {
|
for (Attachment attachment : status.media_attachments) {
|
||||||
if (attachment.description == null || attachment.description.trim().isEmpty()) {
|
if (attachment.description == null || attachment.description.trim().isEmpty()) {
|
||||||
return warnOnly ? -2 : -1;
|
return warnOnly ? -2 : -1;
|
||||||
|
|
|
@ -90,6 +90,9 @@ public class FragmentLoginPickInstanceMastodon extends Fragment implements Insta
|
||||||
binding.regCategory.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
binding.regCategory.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
||||||
|
if (requireActivity().isFinishing() || !isAdded()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (itemA[position].compareTo("custom") != 0) {
|
if (itemA[position].compareTo("custom") != 0) {
|
||||||
JoinInstancesVM joinInstancesVM = new ViewModelProvider(requireActivity()).get(JoinInstancesVM.class);
|
JoinInstancesVM joinInstancesVM = new ViewModelProvider(requireActivity()).get(JoinInstancesVM.class);
|
||||||
joinInstancesVM.getInstances(itemA[position]).observe(requireActivity(), instances -> {
|
joinInstancesVM.getInstances(itemA[position]).observe(requireActivity(), instances -> {
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div style="text-align: center;">
|
<div style="text-align: left;">
|
||||||
<span id='math'></span>
|
<span id='math'></span>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -2,7 +2,7 @@ Added:
|
||||||
- Visual indicator when fetching missing messages
|
- Visual indicator when fetching missing messages
|
||||||
|
|
||||||
Changed:
|
Changed:
|
||||||
|
- Maths formula aligned to the left
|
||||||
|
|
||||||
Fixed:
|
Fixed:
|
||||||
|
|
||||||
- Some crashes
|
- Some crashes
|
Loading…
Reference in a new issue