Commit Graph

221 Commits

Author SHA1 Message Date
B. Petersen c446440537 save one database call 2024-11-14 14:10:17 +01:00
B. Petersen 333e4c9eca notify reactions 2024-11-14 14:10:17 +01:00
B. Petersen fb1f5df234 fix ticker line 2024-11-14 14:10:17 +01:00
Hocuri cc419a9f62 perf: Return early in getTextScale() if text is empty or starts with letter (#3426)
Not sure why, but `setText()` seems to be called with an empty string
very often - for this case it's nice if getTextScale() returns early.

If the text starts with a letter, we can also return early.
2024-11-13 20:08:31 +01:00
B. Petersen 9f3eeb3d0d calculate account size in background
calculation may take a moment,
do this in background.

it is totally fine to just display nothing before,
that avoids flickering (WHAT was this? i cannot look so fast!) -
and in most cases, it is close to instant.
2024-11-13 00:16:52 +01:00
adb 1355303360 Merge pull request #3411 from deltachat/adb/issue-3399
remove old emojis
2024-11-12 20:34:59 +01:00
adbenitez 977b21618c increase accepted lenght for scalling to 21
also avoid unnecessary iteration over graphemes if limit is exceeded already
2024-11-12 19:45:33 +01:00
adb 5cecd5bec3 Update src/main/java/org/thoughtcrime/securesms/components/InputPanel.java
Co-authored-by: Hocuri <hocuri@gmx.de>
2024-11-12 19:29:38 +01:00
adbenitez d8db39f9c7 add comment on regex 2024-11-12 19:28:25 +01:00
adbenitez 736fc44870 fix onEmojiPicked() 2024-11-12 19:23:49 +01:00
adb 537127ec4e Merge pull request #3419 from deltachat/adb/issue-3291
don't increase reaction selector's font size according to system
2024-11-12 15:29:17 +01:00
B. Petersen a5167f3739 log a warning if index gets out of bounds 2024-11-12 10:02:15 +01:00
B. Petersen d481541ad8 crash precaution by checking Spinner bounds
Spinner is very picky about bad selections,
this is an accident waiting to happen -
eg. if new values are introduces
or someone thinks, the "deprecated" case can be removed.

better do not trust incoming data.
2024-11-12 10:02:15 +01:00
adbenitez 7ab19fb8af scale emojis 2024-11-12 05:41:54 +01:00
adbenitez 715a2c0653 don't increase reaction selector's font size according to system 2024-11-12 03:33:36 +01:00
adb 9f8fe08c75 Merge pull request #3400 from deltachat/adb/issue-3395
improve msg_action_button
2024-11-11 16:11:44 +01:00
adbenitez 041c95c6d2 remove jemoji, it adds +13MB 2024-11-06 16:39:17 +01:00
adbenitez dd75a8e858 enlarge font size when text is only a few emojis 2024-11-05 23:04:25 +01:00
Hocuri 23458a6c64 Don't show "0%" at the beginning when being added as second device (#3409) 2024-11-05 15:32:34 +01:00
Hocuri 9679b22072 fix: Accept the deprecated 3 as an alias for 2 (#3410) 2024-11-05 15:28:50 +01:00
adbenitez 3fae301ec2 remove old emojis components 2024-11-05 02:00:42 +01:00
adbenitez 404097fe30 keep old style for "show full message" 2024-10-30 18:22:21 +01:00
adb 13a43473cc improve logging: always log events for accId=0 (#3391)
improve logging: always log events for all accounts including previously ignored accId=0
2024-10-29 17:45:33 +01:00
adb ca947aeef2 Use tag or display name for notifications instead address (#3380)
Use tag or display name for notifications instead address
2024-10-24 20:42:39 +02:00
B. Petersen ab61246240 do not start foreground service in foreground
the foreground service was introduced unconditionally in #3312,
however turns out to be annoying and flickering
if the app is actually in foreground.

the service _might_ be needed in this case only
if the app is about going to background during fetch,
but in this case, we assume,
that we have some 10 seconds time still.

in any case,
this is still an improvement to the released apps,
that _never_ show a foreground service.
2024-10-24 18:53:44 +02:00
adb 021a98c135 allow to set tags on profiles (#3373)
allow to set tags on profiles

---------

Co-authored-by: bjoern <r10s@b44t.com>
2024-10-23 18:05:14 +02:00
adbenitez 5dee44605d allow to share proxy as QR 2024-10-23 15:04:13 +02:00
adbenitez 3c9cecbc39 add DcContext.createQrSvg() 2024-10-23 15:04:12 +02:00
adb 285f59e46a Merge pull request #3367 from deltachat/adb/issue-3385
improve "show QR" screen
2024-10-22 14:40:05 +02:00
adbenitez 5954b13440 allow to paste from clipboard in RegistrationQrActivity 2024-10-21 21:31:06 +02:00
B. Petersen 8ba93f8b82 support DC_QR_BACKUP2 in chatlist-qr-code scanner
this was forgotten by the move to BACKUP2 in #3173
2024-10-20 16:44:33 +02:00
adbenitez aa45476028 remove duplicated options from menu 2024-10-17 23:03:21 +02:00
adbenitez c12ed8060c add "invite link dialog" 2024-10-17 22:48:44 +02:00
adbenitez e8c4d0e606 reflect status of the proxy (enable/disabled) in the proxy icon 2024-10-17 00:59:05 +02:00
adbenitez 7feb4bc93f implement "scan" button 2024-10-15 23:30:49 +02:00
adbenitez d397ccaf7e Do not remember "New Contact" screen's tab state 2024-10-14 17:46:25 +02:00
B. Petersen 86a9da5062 better confirmation message 2024-10-14 15:58:23 +02:00
B. Petersen d3328df6f2 rename the function to what it does: sending multiple messages 2024-10-14 15:58:23 +02:00
B. Petersen 169a706e36 comment about fallback name 2024-10-14 15:58:23 +02:00
B. Petersen bf2fd62154 get filename of URI that are not PersistenBlobProvider 2024-10-14 15:58:23 +02:00
B. Petersen e74795851a use constant to access URI filename 2024-10-14 15:58:23 +02:00
B. Petersen 139b7f84f4 basic handling of multiple selected files 2024-10-14 15:58:23 +02:00
B. Petersen 3d55ea931c move asking-for-sending to a separate function 2024-10-14 15:58:23 +02:00
B. Petersen 73ada05e99 start intent allowing selecting multiple images/videos 2024-10-14 15:58:23 +02:00
B. Petersen a26764355e move 'add profile' to end of list
having 'add profile' at the end of the list is more natural,
and more consisten with desktop/iOS -
as well as internally, eg. proxy also has 'add' at its end.

also, this paves the way to have a consistent layout when it comes
to profile-switching from forward/share dialogs,
where one probably does not want to have a 'add' button
(so, the first lines are not different :)

the profile list is usually not super-large,
and even if - when ppl have managed to add 10+ profiles,
they'll know how to do this, even with scrolling :)
also, adding is a rare function, in contrast to switching,
so even then it makes sense as there is room for one more item without scrolling.

in contrast,
for 'create chat' we show 'add' at the beginning,
as these lists can contain several hundrets of entries _and_
add is often used.
2024-10-10 23:14:57 +02:00
B. Petersen 5f77f791d0 fix the warning when attaching multiple files: images are recoded, only videos are not 2024-10-10 16:47:02 +02:00
B. Petersen fc5a3e5c75 cleanup account switcher
do not show 'Add Profile' in bold.

this looks less cluttered
and makes the "bold" of the selected account more outstanding:

before, there were two types of "boldness",
the add profile button (using bold only)
and the selected profile (using bold and a background),
this results in a bit cluttered, unsteady look,
esp. when there are few accounts and more bold than normal is shown.

also, this makes "bold" more outstanding,
as this attribute is given to one line only.
there is no need for the "add profile" to be that outstanding
(in contrast to eg. the "add chat" dialog)

it is a minor, sure :)
2024-10-09 21:09:23 +02:00
B. Petersen 6fe5ed32cb update chatlist title on profile deletion; this is needed to show 'Delta Chat' in case only one profile is left 2024-10-09 21:08:52 +02:00
B. Petersen cb416e6959 search: add menu allowing toggling is:unread 2024-10-08 20:08:45 +02:00
adb ee6c464a5b Merge pull request #3338 from deltachat/adb/issue-3335
register app for opening ss:// and socks5:// proxy URLs
2024-10-08 17:20:12 +02:00