Commit Graph

4630 Commits

Author SHA1 Message Date
adbenitez 1e149eef83 improve screen reader support in conversations 2023-10-03 21:46:36 +02:00
B. Petersen 479305198c finish settings on language changes
if we do not stay in the appearance page,
it makes more sense to quit the settings completely.

also, this removes potential other issues with the language change
as there is really only the chatlist that needs an update
2023-10-03 21:22:55 +02:00
B. Petersen 66d4a5d884 resume settings activity on language changes
this applies changed immediately,
so esp. right-to-left-changes are correct -
but also weird issues wrt wrong language in the title bar on some api should be fixed.

little downside is that after changing the language,
you're back to the "main settings page"
and do not stay in the "appearance page";
but you can regard this also as a feature, one tap less.

(reason is that the activity is resumed on language changes
and the underlying intent does not track fragments currently)
2023-10-03 18:35:20 +02:00
bjoern 6addd6f8fd check areNotificationsEnabled() before adding notification (#2697)
this is best-practise according to
https://developer.android.com/develop/ui/views/notifications/notification-permission

moreover, use the same check for displaying the settings.
2023-10-03 13:26:45 +02:00
bjoern f18831b196 set targetSdkVersion to 33 (#2649)
* set targetSdkVersion to 33

* api33 requires permission NEARBY_WIFI_DEVICES to access wifi

not sure, if this affects getSystemService(Context.WIFI_SERVICE),
however, we anyway do not ask for permissions here but just try/catch -
if things do not work, we just cannot get the wifi name

(we're not asking for permission as this would require LOCATION in the past -
and that would scare users that just installed Delta Chat
and select "Add Second Devive".
this is the exact reason why NEARBY_WIFI_DEVICES was introduced, btw.
so in case getting the Wifi name does not work on api33,
we can consider asking for a permission - would still be on startup, however)

* update storage permissions in manifest

according to https://developer.android.com/training/data-storage/shared/media#storage-permission

* also update compileSdkVersion

* api33: adapt audio permission request

* api33: adapt gallery permission request

* request correct permissions for the 'photo rail'

* request correct permissions for avatar selection

* api33: storage and audio permission not needed

* add comment wrt 'camera roll'

* add POST_NOTIFICATIONS to the manifest, this already allows to enable notifications in the system settings

* ask for POST_NOTIFICATIONS permission on startup

* explain how to re-enable notifications if initially disabled

* prefer a device message over an alert

* show in settings if notifications are system-disabled
2023-10-03 00:42:20 +02:00
B. Petersen a7f1c7e014 update translations 2023-10-02 21:52:17 +02:00
Asiel Díaz Benítez 33a729b855 Merge pull request #2694 from deltachat/adb/refresh-chatlist
fix account switching issues
2023-10-01 16:29:21 -04:00
Asiel Díaz Benítez 2be2da87d4 Update src/org/thoughtcrime/securesms/ConversationListFragment.java 2023-10-01 16:25:40 -04:00
adbenitez 55fedbc751 use correct account context for dcChat 2023-10-01 22:03:57 +02:00
adbenitez 0ef046a2bc refresh chatlist data on new intent 2023-10-01 21:57:32 +02:00
Asiel Díaz Benítez ee1d128e8c Merge pull request #2696 from deltachat/chat-get-account-id
add DcChat.getAccountId()
2023-10-01 15:55:01 -04:00
B. Petersen e980793afb api33: prefer color-scheme over setForceDark() 2023-10-01 21:53:21 +02:00
B. Petersen 15b7919787 add DcChat.getAccountId() 2023-10-01 21:48:55 +02:00
B. Petersen 922f0dab1e streamline DcContext finalize 2023-10-01 18:10:18 +02:00
Asiel Díaz Benítez 1966238355 Merge pull request #2692 from deltachat/adb/issue-2248
sanitize filename before creating it in the blobs dir
2023-10-01 11:51:21 -04:00
adbenitez e5e987f932 remove redundant checks 2023-10-01 17:50:15 +02:00
Asiel Díaz Benítez f32d647dfe Merge pull request #2689 from deltachat/fix-webxdc-fast-tapping
no more than one webxdc start within 500ms
2023-10-01 11:22:02 -04:00
adbenitez abb777294f sanitize filename before creating it in the blob dir 2023-10-01 16:58:33 +02:00
adbenitez 9fa3c03048 reset seekbar to zero on init, fix equals() for AudioSlide 2023-10-01 15:00:41 +02:00
B. Petersen 3fd06ad27e update progress only for the actually playing AudioSlide 2023-10-01 15:00:41 +02:00
B. Petersen c6d944b692 update translations 2023-10-01 13:16:34 +02:00
B. Petersen 49a177c5ce improve message of too large video 2023-10-01 01:04:15 +02:00
B. Petersen ba1240420b show alert instead of toasts in case of video errors 2023-10-01 01:04:15 +02:00
B. Petersen bc3e617919 improve logging video errors 2023-10-01 01:04:15 +02:00
B. Petersen de0e0666fb show alert if no camera is available 2023-10-01 01:04:15 +02:00
Asiel Díaz Benítez b937ee443c Merge pull request #2688 from deltachat/adb/code-cleanup
code cleanup
2023-09-30 18:57:24 -04:00
adbenitez bf54dd9027 use DC_CHAT_NO_CHAT instead of 0, remove unused line of code 2023-09-30 23:39:11 +02:00
adbenitez 5bc3157d2e remove unnecessary overrides 2023-09-30 22:50:21 +02:00
B. Petersen 722ded32d3 no more than one webxdc start within 500ms
it seems, fast tapping may result in starting a webxdc twice on some systems,
i cannot reproduce this, but this check may help
2023-09-30 22:47:53 +02:00
adbenitez 7ccf26d0e7 remove unnecessary copyToClipboardSdk11() 2023-09-30 22:45:30 +02:00
adbenitez 2ad6186ea3 make fields final 2023-09-30 22:45:07 +02:00
adbenitez b2fc07457f remove double semicolon 2023-09-30 22:29:03 +02:00
adbenitez 39de85ef6e remove unused imports 2023-09-30 22:28:43 +02:00
B. Petersen d1e71c83a6 instant update on resume 2023-09-30 22:23:13 +02:00
B. Petersen 140c0577a2 add logging for chatlist timers 2023-09-30 22:23:13 +02:00
adbenitez 0a3c8d1b91 use AttachmentManager.selectImage instead of duplicating code in ChatBackgroundActivity 2023-09-30 22:12:25 +02:00
Asiel Díaz Benítez c886eab474 Merge pull request #2686 from deltachat/adb/issue-2091
pause background music when playing voice messages
2023-09-30 15:44:39 -04:00
adbenitez b7285068c9 pause background music when playing voice messages 2023-09-30 18:28:12 +02:00
B. Petersen 05850a0d00 move part of left padding from emoji-button to parent; this looks better the emoji button is not needed as using system-emoji are used 2023-09-30 18:12:51 +02:00
B. Petersen 7b47c0adf8 fix welcome title bar
this was overseen at #2671

closes #2682
2023-09-30 17:42:51 +02:00
Asiel Díaz Benítez b515053f7d Merge pull request #2683 from deltachat/adb/issue-2679
display text in reaction pill
2023-09-30 11:42:36 -04:00
Asiel Díaz Benítez c874081926 Merge pull request #2681 from deltachat/adb/issue-2658
allow to select key to import instead of using Download folder
2023-09-30 11:33:04 -04:00
adbenitez 9ad19a3c41 display text in reaction pill 2023-09-30 17:32:08 +02:00
adbenitez d03ad47f68 display dialog after selecting file 2023-09-30 16:26:32 +02:00
Asiel Díaz Benítez 7e845261a2 Merge pull request #2676 from deltachat/adb/issue-2675
display reactions details
2023-09-30 10:08:54 -04:00
adbenitez a86ba375dc disable click in reactions pills in multi-select mode 2023-09-30 15:54:29 +02:00
adbenitez 05249ef38f rename pathName and fix indentation 2023-09-30 15:43:30 +02:00
adbenitez 1f7a0aa265 remove empty line 2023-09-30 14:51:02 +02:00
adbenitez 849839a334 allow to select key to import instead of using Download folder 2023-09-29 19:00:05 +02:00
B. Petersen c11a6ced62 update deltachat-core-rust to 'chore(release): prepare for 1.123.0' of 'v1.123.0' 2023-09-29 16:33:15 +02:00