Commit Graph

101 Commits

Author SHA1 Message Date
Hocuri d8913cf17e Adapt to new direct share api (#1852)
Fix #1777
2021-10-13 17:33:55 +02:00
Hocuri b3fea81bed Implement a basic connectivity view
The non-squashed original commits are available at 243bd3a56:

* First, quick and dirty version

* Basic HTML connectivity view

* Codestyle, automatically refresh

* Make it accessible from the settings

* Improve usability

I did some user-testing with my family, these are the results:
- Added an emoji to the html page (red dot for not connected, and so on)
- Adapted error messages for SMTP:
  "Not started" -> "(You did not try to send a message recently)"
  "🟢 Connected" -> "🟢 Your last message was sent successfully"
- "Not connected" is misleading, because they think that this means that there is no internet connection.
  But "Not connected" can have other causes, like, a not responding server or a changed-but-not-updated-in-DC password

  Possible solutions:
  - "Not connected" -> "Not connected with gmx.de" (or whatever comes after the '@' in configured_addr). The problem: some people have an own domain for their emails, but no own servers. "Not connected with <your domain>" and might make them think that the problem is that DC tries to connect to the server <your domain>, while the server is hosted at Strato.com.
  - We can ask the system whether there currently is network and then show another error message. The problem: Sometimes the system is wrong.

* Remove error_network

* Remove server_response string

* Move `getConnectivitySummary()` to `DcHelper`

* Implement the changes we agreed on

* Remove string error_no_network

* small fixes
2021-07-08 22:50:22 +02:00
adbenitez 27df7fa943 add more case variations 2021-06-29 22:39:21 +02:00
adbenitez a267cdd151 handle URLs starting with OPENPGP4FPR: 2021-06-29 22:39:21 +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
bjoern 8d9c02dd7a add option to view full (html) message (#1763)
* add get-mime-original apis

* remove unused control

* add 'Show full message' buttons

* split reusable WebViewActivity from LocalHelpActivity

* add FullMsgActivity

* load html via AsyncTask

* adapt to changed api

* handle mailto:-links in WebView

* block loading remote images by default, add user setting always/once/never

* do not hide 'Once' button in always-mode, playing around a day with hidden 'Once' that looks more like a bug :)

* wording: as 'Always' affects all messages, it is better to speak of multiple senders

* wording: use 'Load remote images'

this makes it easier for the user to find the option
if one sees, images are missing in the document.

* wording: shorten text.

* wording: change 'may' to 'can'. 'may' sounds a bit as if someone allows this.

* Don't use AsyncTask

* check 'once' if appropriate

* use lite-colored checkbox-emoji in dark-theme

* add comment about missing error logging

Co-authored-by: Hocuri <hocuri@gmx.de>
2021-01-28 22:53:15 +01:00
Hocuri 438a3aaa43 Handle sendto intents with ShareActivity, not NewConversationActivity 2020-12-09 23:53:10 +01:00
B. Petersen d056b039f0 remove windowSoftInputMode="stateHidden" from profile
according to https://developer.android.com/guide/topics/manifest/activity-element,
it hides the keyboard when creating the activity, but does nothing when navigating back
(as in https://github.com/deltachat/deltachat-android/issues/1606 )

removing the flag closes the keyboard for both directions,
which seems to be the standard behavior and works just well here.

(came over that when checking why the other place where single_line_input was
used (video instance input) works without problems)
2020-09-11 15:02:10 +02:00
cyberta ce8f4a58d2 reuse signals generic foreground service for import export 2020-09-03 17:30:52 +02:00
cyberta 9b25bce3b2 requestLegacyExternalStorage until DC supports scoped storage (must be before targeting API 30) 2020-08-13 15:04:07 +02:00
cyberta 3c0a88227d update location background activity permissions 2020-08-13 14:11:14 +02:00
cyberta 005f707658 ask for install permission if on an attached apk was tapped (Android API 26+), fixes #1492 2020-07-28 10:53:52 +02:00
B. Petersen 2caaa1e097 manually remove summary-notification; this is needed when we cancel the other notifications from within the app 2020-06-15 18:01:59 +02:00
B. Petersen 39bc508a31 remove unused search xml files 2020-04-04 14:09:53 +02:00
B. Petersen 86de9be115 add basic help-search controls 2020-04-04 02:00:56 +02:00
B. Petersen a7212daf40 add registration-qr-scan activity 2020-02-10 14:11:12 +01:00
B. Petersen 0f64d4e9c5 remove unused InviteActivity, it was disabled 9 months ago in #790 2020-01-17 14:08:22 +01:00
B. Petersen afc1f99788 add basic local-help-activity, adapt menus and add a demo-file 2020-01-10 22:58:47 +01:00
Hocuri 268722c0be It compiles ;-) 2020-01-03 00:20:18 +01:00
Hocuri b090232702 Move to qrScanActivity 2020-01-03 00:20:18 +01:00
B. Petersen 786c6cd46f remove unused SET_WALLPAPER permission 2019-12-03 16:21:25 +01:00
cyberta a01fc96547 implement openpgp4fpr url scheme handling 2019-11-28 21:06:10 +01:00
cyberta 7117303e6f replace string reference dc_app_name by app_name 2019-11-27 05:38:14 +03:00
Ozancan Karataş fb7d80f2a6 Delete dc_app_name, use app_name 2019-11-27 01:53:24 +03:00
B. Petersen 638a8e5205 adapt to ndk r20b 2019-11-14 20:47:26 +01:00
B. Petersen bbad6ee584 remove TimerReceiver 2019-11-08 19:38:28 +01:00
B. Petersen fb235b7639 upgrade to androidx support libraries 2019-11-08 01:22:28 +01:00
B. Petersen 2dd3a4a10a ask for normal permission FOREGROUND_SERVICE in the manifest 2019-10-12 00:06:42 +02:00
cyBerta 4362341a71 Merge pull request #987 from deltachat/crop_signal
update image editing functionality to latest signal code
2019-07-09 13:11:31 +02:00
B. Petersen f51670df5f adapt scribble-sticker-select to dark layout of scribble-activity 2019-07-09 01:25:56 +02:00
cyBerta c0744d4280 remove quick reply fallback #983 2019-07-08 16:00:31 +02:00
cyBerta 6af9d59829 share to single contacts (#900) 2019-06-25 23:00:46 +02:00
B. Petersen 9699214781 in chat-profile-contact-list, open contact-profile on tap (instead of asking to start a new chat directly) 2019-06-18 00:28:43 +02:00
cyBerta 35138022e9 notification refactoring 2019-05-28 01:11:40 +02:00
B. Petersen e91bead522 remove dead code 2019-05-25 13:26:40 +02:00
B. Petersen d80e930e19 rename MediaOverviewActivity to ProfileActivity 2019-05-20 20:31:39 +02:00
cyBerta 84bdc42c7c * fix back button behavior for sharing and forwarding (#903)
* fix title in archived chats while sharing content
2019-05-15 12:56:33 +02:00
cyBerta 0bfea03707 handle sharing analogous to forwarding:
* search for contacts, share to new contacts, share to archives
* hide option menu while sharing/forwarding
* use action bar back icon to cancel sharing/forwarding
2019-05-09 14:14:45 +02:00
cyBerta 26949980db #891 search during forwarding, forward to archives, forward to new contacts 2019-05-09 14:14:45 +02:00
Ampli-fier 16e53a98d6 Enhance log with scroll and zoom possibility 2019-04-27 22:16:41 +02:00
B. Petersen f141dba12d tweak soft keyboard 2019-03-28 01:20:03 +01:00
cyBerta 55973ef857 Merge branch 'master' into location-streaming 2019-03-13 13:03:34 +01:00
daniel.boehrs 0c5e1b95f5 sharing files does not work #434 2019-03-09 18:37:01 +01:00
cyBerta a8e5e51ab9 move map and android related code to org.thoughtcrime.securesms 2019-03-06 12:31:48 +01:00
cyBerta 726d59c162 initial location service implementation, adds a map activity 2019-03-06 12:16:52 +01:00
B. Petersen b8a1646823 application-id in delta-chat-auth-scheme is optional 2019-02-20 23:11:57 +01:00
B. Petersen bb4b72eab1 use correct redirect_uri 2019-02-18 22:55:12 +01:00
B. Petersen 3324acd590 disable gcar for now, bump version 2019-02-13 12:03:33 +01:00
B. Petersen d501f17525 request permission to ask the user to ignore battery-optimize 2019-02-08 17:18:10 +01:00
daniel.boehrs 7a9d2b8e53 Can't share with pattern set #464 2019-02-08 10:40:08 +01:00