Commit Graph

2719 Commits

Author SHA1 Message Date
adbenitez f2155577d3 report crash 2023-10-05 23:17:46 +02:00
adbenitez d1345fd276 increase audio quality in "worse" mode 2023-10-05 15:02:24 +02:00
adbenitez 50f5aa3db7 avoid display issue with markdown in text emoji 2023-10-05 14:53:07 +02:00
adbenitez 344e66b004 Merge remote-tracking branch 'upstream/main' 2023-10-05 13:59:14 +02:00
Asiel Díaz Benítez 673f3f05f5 Merge pull request #2721 from deltachat/adb/issue-2720
allow to select all media
2023-10-05 07:51:34 -04:00
adbenitez efc0d8d657 Merge remote-tracking branch 'upstream/main' 2023-10-05 01:06:40 +02:00
adbenitez 6775fa08ad update menu when select-all is triggered 2023-10-05 00:39:27 +02:00
B. Petersen c212f0930d streamline parameter order 2023-10-05 00:23:17 +02:00
B. Petersen 134d7ad4c2 remove unneeded FROM_SHARE_ACTIVITY_EXTRA 2023-10-05 00:23:17 +02:00
B. Petersen 6132737a24 simplify condition 2023-10-05 00:23:17 +02:00
B. Petersen ff1ca22b5f do not allow new contact creation on attaching contact 2023-10-05 00:23:17 +02:00
B. Petersen ca55d72394 hide 'new group' etc. in attach contact 2023-10-05 00:23:17 +02:00
B. Petersen a66562ac5d on-point names 2023-10-05 00:23:17 +02:00
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
adbenitez 1adf8e5d38 allow to select all media 2023-10-04 23:35:04 +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
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
adbenitez 6bd0b97257 save map preferences per account, not only per chat id 2023-10-04 15:38:56 +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
adbenitez 03c3020bef Merge remote-tracking branch 'upstream/main' 2023-10-04 05:07:34 +02: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
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 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
adbenitez 2e46725e07 Merge remote-tracking branch 'upstream/main' 2023-10-03 15:10:01 +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