Commit Graph

4667 Commits

Author SHA1 Message Date
B. Petersen 56044f39ee mimic the previous behavior 2023-10-05 00:23:17 +02:00
B. Petersen 6fd19d2da4 share contact data 2023-10-05 00:23:17 +02:00
B. Petersen ecd15d4c44 move back-button handling to base class ContactSelectionActivity 2023-10-05 00:23:17 +02:00
B. Petersen 66d495ae49 derive AttachContactActivity from ContactSelectionActivity 2023-10-05 00:23:17 +02:00
B. Petersen f9a89feb24 cleanup imports 2023-10-05 00:23:17 +02:00
B. Petersen 7a44e16a5d remove share stuff from BlockedAndShareContactsActivity 2023-10-05 00:23:17 +02:00
B. Petersen e7f8dbeb91 split off AttachContactActivity from BlockedAndShareContactsActivity 2023-10-05 00:23:17 +02:00
Asiel Díaz Benítez f0a9ac05d3 Merge pull request #2717 from deltachat/adb/issue-2716
allow to set chat background per-account
2023-10-04 17:29:41 -04:00
Asiel Díaz Benítez d1f44e9c82 Update src/org/thoughtcrime/securesms/ApplicationContext.java
Co-authored-by: bjoern <r10s@b44t.com>
2023-10-04 17:28:44 -04:00
B. Petersen 3242f12052 remove dead code
the screen-lock functionality was removed in
https://github.com/deltachat/deltachat-android/pull/1942 ;
the getters/setters were in use a little longer for a migration device messsage,
however, meanwhile this migration is removed as well.
2023-10-04 22:37:47 +02:00
Asiel Díaz Benítez 1c15de6330 Merge pull request #2715 from deltachat/adb/issue-2714
save map preferences per account, not only per chat id
2023-10-04 16:31:07 -04:00
adbenitez 41588d0de3 move migration to ApplicationContext 2023-10-04 22:19:26 +02:00
adbenitez e6e92f60e8 be backwards compatible
also fix bug: save custom wallpaper in different file per account
2023-10-04 20:10:03 +02:00
adbenitez d65c45f96a allow to set chat background per-account 2023-10-04 16:33:23 +02:00
Asiel Díaz Benítez 402e6ac970 Merge pull request #2713 from deltachat/adb/fix-webxdc-loading
properly display webxdc's loading screen in dark mode
2023-10-04 09:41:12 -04:00
adbenitez 6bd0b97257 save map preferences per account, not only per chat id 2023-10-04 15:38:56 +02:00
Asiel Díaz Benítez 2e2a22b75d Merge pull request #2712 from deltachat/adb/issue-2711
switch account if needed when opening webxdc app from home shortcut
2023-10-04 09:08:30 -04:00
adbenitez 512299a1d9 properly display webxdc's loading screen in dark mode 2023-10-04 15:04:02 +02:00
adbenitez 4eda9a0091 switch account if needed when opening webxdc app from home shortcut 2023-10-04 14:31:12 +02:00
Asiel Díaz Benítez 703b1e39cb Merge pull request #2710 from deltachat/adb/issue-2708
use DynamicNoActionBarTheme in ScribbleActivity
2023-10-04 07:56:57 -04:00
Asiel Díaz Benítez 387bd33e1f Merge pull request #2708 from deltachat/adb/issue-2707
allow to resend attachments from chat profile
2023-10-04 07:56:31 -04:00
adbenitez c4930309f3 use DynamicNoActionBarTheme in ScribbleActivity 2023-10-04 13:53:14 +02:00
Asiel Díaz Benítez b2712545a4 Merge pull request #2705 from deltachat/adb/issue-2704
fix displaying of sticker's footer
2023-10-04 07:38:06 -04:00
Asiel Díaz Benítez 463acaa47c Merge pull request #2706 from deltachat/adb/improve-thumbnail-description
check if thumbnail's footer is visible in getDescription()
2023-10-04 07:36:05 -04:00
adbenitez 5e5a1ec6c5 allow to resend attachments from chat profile 2023-10-04 04:50:14 +02:00
adbenitez 408df46643 check if thumbnail's footer is visible in getDescription() 2023-10-04 03:52:20 +02:00
adbenitez ce1733f3ea fix displaying of sticker's footer 2023-10-04 03:28:21 +02:00
Asiel Díaz Benítez 44376a6046 Merge pull request #2702 from deltachat/adb/issue-2470
improve screen reader support in conversations
2023-10-03 18:31:53 -04:00
B. Petersen a7296c7465 reuse ACCESSIBILITY_SERVICE object
as `isTouchExplorationEnabled()` is called more often now,
this avoids tens of calls per chat view.

/me also wanted to commit to the good-last-issue pr :)
2023-10-04 00:27:23 +02:00
Asiel Díaz Benítez 681c7294cc Update src/org/thoughtcrime/securesms/ConversationItem.java
Co-authored-by: bjoern <r10s@b44t.com>
2023-10-03 18:13:36 -04:00
B. Petersen 6dea636ba3 update translations 2023-10-03 23:57:54 +02:00
Asiel Díaz Benítez cccbe5aa3c Update src/org/thoughtcrime/securesms/ConversationItem.java
Co-authored-by: bjoern <r10s@b44t.com>
2023-10-03 17:56:11 -04:00
adbenitez 25cca695f9 create Util.isTouchExplorationEnabled() 2023-10-03 23:55:44 +02:00
bjoern 4a4f8b3d2e Update src/org/thoughtcrime/securesms/components/AudioView.java
Co-authored-by: Asiel Díaz Benítez <asieldbenitez@gmail.com>
2023-10-03 23:43:27 +02:00
B. Petersen 9325f27698 use only one audioFocusChangeListener
use only one `audioFocusChangeListener`
as otherwise the "old" will immediately pause
when we restart playing.

moreover, this pr switches to the new `requestAudioFocus()` api
2023-10-03 23:43:27 +02:00
adbenitez 8300242d0f set some descriptions 2023-10-03 22:11:25 +02:00
adbenitez 27466decf5 remove unnecessary description 2023-10-03 22:07:55 +02:00
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