Commit Graph

1866 Commits

Author SHA1 Message Date
adbenitez 9ddefb8649 handle http intents 2021-04-09 22:21:53 -04:00
adbenitez 13ceebe22a allow videochat in groups 2021-04-08 00:43:19 -04:00
adbenitez 060363635a add task list support 2021-04-07 17:34:15 -04:00
adbenitez 3b02cae775 add basic markdown support 2021-04-07 06:13:40 -04:00
adbenitez 4f49bc2180 add device messages 2021-04-07 03:43:29 -04:00
adbenitez dff820ad76 Merge remote-tracking branch 'upstream/master' 2021-04-06 14:32:30 -04:00
B. Petersen 65e3d85c9e show show_emails state in settings summary 2021-04-06 02:05:56 +02:00
adbenitez e64ad8a03c Merge remote-tracking branch 'upstream/master' 2021-04-05 15:08:19 -04: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
adbenitez 22573b1a89 tweak AudioCodec.java 2021-03-26 15:18:59 -04:00
adbenitez 4813f385f4 Merge remote-tracking branch 'upstream/master' 2021-03-16 13:22:39 -04: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
adbenitez b711b44efa Merge remote-tracking branch 'upstream/master' 2021-03-15 04:38:31 -04: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
adbenitez 45c6112c0a Merge remote-tracking branch 'upstream/master' 2021-03-10 07:00:58 -05: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
adbenitez 24c8cd49b5 Merge remote-tracking branch 'upstream/master' 2021-03-07 17:05:45 -05: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
adbenitez cc2e44fb70 Merge remote-tracking branch 'upstream/master' 2021-03-05 18:59:29 -05: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
adbenitez 08a0baaf1d Merge remote-tracking branch 'upstream/master' 2021-03-01 19:52:03 -05: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
adbenitez 6a6efde411 tweak AudioCodec 2021-03-01 00:54:29 -05:00
adbenitez adb55fdd68 Merge remote-tracking branch 'upstream/master' 2021-02-26 10:37:51 -05: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
adbenitez e5c191c6e8 Merge remote-tracking branch 'upstream/master' 2021-02-22 00:18:08 -05:00
cyBerta 997040d5d6 Merge pull request #1792 from deltachat/emojis_on_map
show emojis on map
2021-02-17 21:27:14 +01:00
adbenitez aeb73350a1 Merge remote-tracking branch 'upstream/master' 2021-02-16 15:54:59 -05:00
cyberta 80ca47fb91 emoji bitmap size depends on passed scale parameter 2021-02-16 13:13:47 +01:00
cyberta 5a5abaffe4 adapt indentation 2021-02-15 22:32:31 +01:00
cyberta 4064f3a30b Don't use AsyncTask class to generate emoji bitmaps, it's deprecated now. Pass emoji scaling factor instead of hard-coding it 2021-02-15 20:04:40 +01:00