Commit Graph

50 Commits

Author SHA1 Message Date
B. Petersen b28a62a1ea remove functions from subclassed DcContext
the functions were part of ApplicationDcContext for no special reason,
however, now standing in the way of avoiding subclassing DcContext
(to use the DcContext objects returned from DcAccounts directly).
2021-07-26 18:41:42 +02: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
B. Petersen 113a6c8f75 remove DcEventCenter from wrapper as it belongs to *.connect 2021-03-05 11:28:33 +01:00
B. Petersen 41603e6688 pass DcEvent object to handlers to avoid error-prone casts 2020-09-20 15:50:40 +02:00
B. Petersen e0c1396f4c streamline wording
we have already the string menu_group_name_and_image
to be used as an 'edit' button label.
the string 'edit' is ommitted to keep things a bit shorter.
if we like, we can change that string, however,
maybe things are just fine :)
2020-06-06 18:40:35 +02:00
B. Petersen 6f2a40ecb3 do not delete the group-avatar on editing group-name 2020-05-14 01:59:52 +02:00
cyBerta a6f9110a85 Merge pull request #1204 from deltachat/verifiy-explain
add verified group hint
2020-01-03 12:15:53 +01:00
Hocuri b090232702 Move to qrScanActivity 2020-01-03 00:20:18 +01:00
B. Petersen 337be725fb add verified group hint, simplify new-group xml 2020-01-02 21:47:59 +01:00
B. Petersen fb235b7639 upgrade to androidx support libraries 2019-11-08 01:22:28 +01:00
cyBerta 41dc94387b don't allow to remove yourself from the multiselect contact list, fixes #833 2019-06-26 16:03:27 +02:00
B. Petersen d3214cf470 simplify edit-view 2019-05-25 13:26:40 +02:00
B. Petersen e91bead522 remove dead code 2019-05-25 13:26:40 +02:00
cyBerta 26949980db #891 search during forwarding, forward to archives, forward to new contacts 2019-05-09 14:14:45 +02:00
B. Petersen c7ed32852d do not load participant list without need 2019-03-29 17:35:42 +01:00
chklump 9a78bfe878 Fix for #698 part 2: "Me" not part of the group when clicked on "QR invite code" and no one joined. 2019-02-10 13:09:10 +01:00
chklump 16a8b21eec Fix for #698 part 1: Crash when creating new group with empty name. 2019-02-10 13:09:04 +01:00
B. Petersen 127a1c0023 allow qr-code-scanning during group creation, fixes #229 2019-01-14 01:24:24 +01:00
B. Petersen 9ff2e8839d show qr-invite code also for normal chats, tune-down verify wording a bit 2019-01-08 18:06:47 +01:00
chklump 27c6c3ab69 * Initialize the ContactSelectionListFragment from the SelectedRecipientsAdapter intead of from the initial group, so repeated opening, selecting and deselecting, closing cycles of the ContactMultiSelectionActivity show correct behaviour. 2019-01-06 14:38:07 +01:00
chklump e8e100a72e * Initialize the ContactSelectionListFragment with the selection from GroupCreateActivity, tackles #47.
* If contact is unselected in ContactSelectionListFragment, which was previously in the group, delete it from GroupCreateActivity, also.
2019-01-06 14:19:51 +01:00
B. Petersen cdf2aad98e simplify color handling 2018-12-13 14:41:32 +01:00
B. Petersen defac037de rework strings 2018-12-12 17:55:08 +01:00
B. Petersen 87e1937381 remove dependency to google's phonenumers library, tackles #138 2018-12-11 00:23:58 +01:00
B. Petersen cc94b66799 remove unneeded DisplayMode 2018-12-10 00:43:44 +01:00
B. Petersen c3c110b55a remove dead code 2018-12-09 22:46:02 +01:00
B. Petersen 4f5b43579b move helper-classes from org.whispersystem here, tackles #138 2018-11-26 00:36:35 +01:00
daniel.boehrs dd67248066 avatars for contact / new chat view #55 2018-11-02 09:01:43 +01:00
Angelo Fuchs d4f1af7521 for #32 (notifications) the type of thread id in ConversationActivity is now int (not long). Where its too hard, I added a cast and a todo. 2018-11-01 21:22:13 +02:00
daniel.boehrs b635384dd5 Make GroupCreateActivity aware of verified joins #92 2018-11-01 10:04:51 +01:00
daniel.boehrs 5221b4c8fd Show qr and self reference on group edit #92 2018-10-30 16:19:18 +01:00
daniel.boehrs 92a0a83187 Rewrite profile image handling for #55 2018-10-30 12:16:02 +01:00
daniel.boehrs c192b719f5 show avatars for groups #55 2018-10-29 15:44:55 +01:00
daniel.boehrs ed0de74406 Adjust keyboard show / hide #92 2018-10-29 10:29:43 +01:00
daniel.boehrs 9906608956 fix group create crash #103 2018-10-22 19:08:35 +02:00
daniel.boehrs c459aa4476 set group image #92 2018-10-22 16:23:42 +02:00
daniel.boehrs 5424d56801 edit groups #92 2018-10-22 15:20:24 +02:00
B. Petersen 471f4480ac remove now unused ConversationActivity.DISTRIBUTION_TYPE_EXTRA 2018-10-21 14:36:29 +02:00
B. Petersen 50b18b7d65 remove now redundant ConversationActivity.ADDRESS_EXTRA 2018-10-21 14:15:55 +02:00
B. Petersen 9f6a7cbf00 make create groups work again, tackles #92 2018-10-19 23:03:06 +02:00
daniel.boehrs db92bb274b prefill groups form with exstiting data #92 2018-10-18 16:13:27 +02:00
daniel.boehrs bf85918ed2 add qr show+scan activities #79 and adjust UI 2018-10-18 10:53:21 +02:00
B. Petersen b16c80f6c5 tweak group-create navigation, tackles #28 2018-09-18 17:13:46 +02:00
B. Petersen 99ae3f1f6a allow new creation of conacts directly from the add-member activity, tackles #28 2018-09-18 16:07:18 +02:00
B. Petersen 686e3ebbc6 avoid loading an object for just saving the id to the Address object 2018-09-18 15:35:53 +02:00
B. Petersen 9d7dedeb8f add a simple button to add members to group; this can be easily enhanced by a 'show qr invite' code button 2018-09-18 15:08:55 +02:00
B. Petersen c5786488e8 create groups and verified groups
create groups and verified groups
2018-09-18 01:29:39 +02:00
B. Petersen ffb14ec088 adapt group creation
display selected group members correctly

add items to create groups/verified-groups/contacts directly to the contact list

adapt main menu, create chat, help

forward from chat to group creation
2018-09-17 14:38:25 +02:00
B. Petersen 157f3498f9 remove some unneeded push-only-code 2018-09-17 00:32:28 +02:00
B. Petersen b1a00a03d2 Initial commit 🌱 2018-08-14 17:20:46 +02:00