Commit Graph

1771 Commits

Author SHA1 Message Date
Asiel Díaz Benítez 008f21bd3e Merge pull request #1876 from deltachat/adb-issue-1869
finish action mode on tab switch
2021-04-17 12:53:26 -04:00
adbenitez 471bff5e97 allow to add POI with text of any length 2021-04-17 01:26:14 -04:00
adbenitez d562260906 finish action mode on tab switch 2021-04-16 22:26:12 -04:00
Asiel Díaz Benítez 78aa6733fc Merge pull request #1868 from deltachat/adb-issue-1865
add more options to Gallery and Documents profile tabs
2021-04-16 13:20:12 -04:00
adbenitez c43b133e0c declare MessageSelectorFragment implements DcEventCenter.DcEventDelegate 2021-04-15 12:46:33 -04:00
adbenitez 151f5d354d Merge branch 'adb-issue-1865' of github.com:deltachat/deltachat-android into adb-issue-1865 2021-04-15 12:34:04 -04:00
adbenitez 55837fb9b4 more refactoring, declare abstract setCorrectMenuVisibility() and move getSelectedMessageRecord() to MessageSelectorFragment 2021-04-15 12:33:43 -04:00
Asiel Díaz Benítez 284c91555d Apply suggestions from code review
Co-authored-by: Hocuri <hocuri@gmx.de>
2021-04-15 12:08:11 -04:00
adbenitez 771f75e48f allow videochat invitations in groups 2021-04-15 16:58:03 +02:00
Asiel Díaz Benítez 4b829334f2 Merge pull request #1872 from deltachat/adb-issue-1870
hidde share button in media preview of draft image or avatar
2021-04-15 10:40:30 -04:00
adbenitez 3256cd392a hidde share button in media preview if preview is for draft image or avatar 2021-04-14 23:23:54 -04:00
adbenitez 7313c6d521 make MessageSelectorFragment abstract 2021-04-14 20:02:56 -04:00
adbenitez c7ff727d04 refactoring to reduce code duplication 2021-04-14 19:50:56 -04:00
adbenitez aef48aa7ee rename info_str to infoStr in all the code even not related to this PR but well 2021-04-14 16:09:48 -04:00
adbenitez d55292bba5 follow cyBerta's recommendation 2021-04-14 16:06:57 -04:00
B. Petersen c2de12e1a3 let LocalHelpActivity detect language-region combinations 2021-04-14 16:58:48 +02:00
adbenitez c8efc72424 add details action to menu 2021-04-13 19:57:38 -04:00
adbenitez 7f358b0910 add more options to Gallery and Documents profile tabs 2021-04-13 18:59:23 -04:00
Hocuri ed0796723b Alias support (#1840)
* Adapt to alias support: Always show sender avatar and name on messages if OverrideSenderName is set

See https://github.com/deltachat/deltachat-core-rust/pull/2297

* Rename groupThread to showSender as this variable is not only true in groups anymore
2021-04-12 20:39:12 +02:00
Hocuri fee4e99f51 Let stickers handle clicks 2021-04-11 13:32:40 +02:00
adbenitez c4354a5a1e use mute API directly 2021-04-09 15:30:51 -04:00
B. Petersen 65e3d85c9e show show_emails state in settings summary 2021-04-06 02:05:56 +02:00
B. Petersen 6dac8c4989 remove device message for now, we will add a fresh one for the final release 2021-04-04 21:17:30 +02:00
Hocuri 3ec78953fa Bugfix: open images in the media preview again
Since #1834, images were not opened in the media preview again but
opened with an external app.

This was because since #1834, only slides that return true on
`hasImage()` are shown in the media preview, i.e. gifs, images and
videos.

Now, the problem was that images were shown as DocumentSlides under
some circumstances, which return `false` for `hasImage()` (naturally).
2021-03-16 17:50:12 +01:00
Hocuri 4c0d03772d Better profile and group picture selection by using attachment selector (#1837)
fix #1836

AvatarSelector is mostly copied from AttachmentTypeSelector. I first started to make it a subclass, but there were so many functions that had to be changed that I decided against it (esp. also the constructor, so I would have had to create another constructor to allow AvatarSelector to bypass the "normal" constructor). Could still be done though, of course.

I think (hope joy) that the commits are clear enough that this can be reviewed commit-by-commit. In the first commit, commenting out code means "Moved somewhere else"

I found it easier to look at the first commit using gitk than GitHub as GitHub doesn't show it as copied from AttachmentTypeSelector but as a new file. (of course you can also just review normally, going throug it file-by-file :)

* Don't show remove button if there is no image yet

* Remove unnecessary animation that just made things look worse

* Delete now-unused ClearProfileAvatarActivity

* For groups, also use the attachment-chooser-dialog

* Remove confirmation dialog for removing avatar (The user has to confirm anyway, and this was not correctly translated)
2021-03-16 11:58:44 +01:00
Hocuri ce8ff61a37 Don't open media preview for attachments with file viewtype (#1834)
fix #1816

The problem was:
- as @link2xt already wrote, the onclick listener only checks if the mime type is `image/` or `video/`.
- then `PagingMediaLoader` loads all images and videos of the current chat with `context.getChatMedia(msg.getChatId(), DcMsg.DC_MSG_IMAGE, DcMsg.DC_MSG_GIF, DcMsg.DC_MSG_VIDEO)`. We need _all_ images so that the user can swipe back and forth.
- The correct image to be shown can't be found, the MediaPreview is opened anyway. As the correct image can't be shown, the first image in the chat is shown.
2021-03-14 19:23:51 +01:00
adbenitez 7b6f1bd507 add lock recording feature 2021-03-14 15:28:23 +01:00
Hocuri c1b4e57b9e Don't open media preview for attachments with file viewtype
fix #1816
2021-03-14 14:48:05 +01:00
Hocuri 6b3adf4831 Don't use the diskette icon for export attachment at all 2021-03-13 18:56:26 +01:00
Hocuri bf86badb1c Allow to share media from Delta Chat 2021-03-13 18:56:26 +01:00
Asiel Díaz Benítez beee60d6a7 implement sticker visualization (#1823)
Sticker picker is not implemented, just receiving(from DC Desktop, bots or future DC versions) and forwarding stickers
(code adapted from Signal)
2021-03-10 10:55:50 +01:00
B. Petersen 8589f8652b pass through unused clicks 2021-03-09 01:59:17 +01:00
B. Petersen df7e0aaa2e make links work 2021-03-09 01:59:17 +01:00
B. Petersen e54d07fd15 linkify status messages, move linkify to EmojiTextView for that purpose 2021-03-09 01:59:17 +01:00
B. Petersen dde3a49db3 add status field to profile 2021-03-09 01:59:17 +01:00
B. Petersen 2c8bd39cd2 move email-address to subtitle, this is a unique element also used at other places; copy-to-clipboard goes to the menu 2021-03-09 01:59:17 +01:00
B. Petersen 4901d7c68f add getStatus() api 2021-03-09 01:59:17 +01:00
B. Petersen 0390d845e5 cleanup 2021-03-09 01:59:17 +01:00
Hocuri 720f553717 Make the upper back button return to conversation list even if the keyboard is open
As discussed in the Testing group
2021-03-08 14:21:22 +01:00
Hocuri f6a5a24165 Use the message subject as the full-msg-view title
For long subject it's ellipsized (`…`) now, but I think that there is no need to show the full subject somewhere, it usually doesn't contain _that_ important information and can be seen in full in the normal chat view
2021-03-07 17:40:22 +01:00
B. Petersen 6b3caad278 add selected language and rtl to log 2021-03-05 17:30:00 +01:00
B. Petersen c99a1809a1 mark overridden senders in quotes
if the original author of a quote is shown
and known to be overridden,
that should be marked with the character '~'
as for the normal names,
esp. as they are look very similar otherwise,
eg. also bold, also colored.
the missing '~' looks like a bug here.

successor of #1808
2021-03-05 16:46:58 +01:00
Hocuri 5b877ff82a Delete lots of unused code 2021-03-05 16:27:33 +01:00
Hocuri bb4272de9f Fix the image-is-cropped-too-much-bug
fix  #1797

Apparently, we ran into a bug similar to the one described in
https://github.com/bumptech/glide/issues/613#issuecomment-144762087 as
we cropped twice (in addition to the cropping I removed, we also set
`android:scaleType="centerCrop"` in `thumbnail_view.xml`)
2021-03-05 16:27:33 +01:00
B. Petersen 23dedb5a24 remove Android-specific DcContact.getArgbColor() from bindings 2021-03-05 11:28:33 +01:00
B. Petersen 113a6c8f75 remove DcEventCenter from wrapper as it belongs to *.connect 2021-03-05 11:28:33 +01:00
B. Petersen 76ae58a6b3 remove Android references from wrapper and make it standalone usable 2021-03-05 11:28:33 +01:00
Hocuri 84313bdf4f Call stop_io()/start_io() before/after backup export
should ideally be merged before https://github.com/deltachat/deltachat-core-rust/pull/2255, but that's not too important

I tested key import/export and backup import/export, all work fine.
2021-03-01 14:10:53 +01:00
bjoern 05287b50bf remove dead code (#1820)
the number of blocked contacts is just the size of the array returned by getBlockedContacts()
2021-02-22 16:24:49 +01:00
cyBerta 997040d5d6 Merge pull request #1792 from deltachat/emojis_on_map
show emojis on map
2021-02-17 21:27:14 +01:00