Commit Graph

3428 Commits

Author SHA1 Message Date
adbenitez 96271b367e Merge remote-tracking branch 'upstream/master' 2021-02-07 15:13:44 -05:00
adbenitez 2e190a974f update submodule 2021-02-07 14:45:53 -05:00
B. Petersen 4a9e4d17bc update translations 2021-02-07 20:35:35 +01:00
B. Petersen 6ee32bf490 update deltachat-core-rust submodule 2021-02-07 20:33:29 +01:00
B. Petersen 9f2be9c56c use dc_get_chat_encr_info() where useful 2021-02-07 20:32:51 +01:00
B. Petersen 44b0739f6c make profile-menu easier editable, show 'Encryption' item also in groups 2021-02-07 20:32:51 +01:00
adbenitez d177f4eaef update release workflow 2021-02-06 19:44:16 -05:00
B. Petersen 0efd4154ea update scripts/grep-string.sh to ignore more generated files 2021-02-06 17:32:25 +01:00
Hocuri b645dc60a0 Improve performance and make sure that there is no race condition
add a static boolean doReinitializeDraft that is set to true in onPause() if this activity was started using startActivityForResult(). in onResume(), do if(doReinitializeDraft) { initializeDraft(); }.
2021-02-05 22:32:50 +01:00
Hocuri cd5f0c212c Fix disappearing drafts
Some people reported that drafts were disappearing, and I found a way to
reproduce it (my interpretation in brackets):
- Open Saved Messages chat, could be any other chat too
- Go to another app and share to DC
- In DC select Saved Messages
  - (as sharing is done using startActivityForResult(), a second
  ConversationActivity is created without affecting the existing one)
- Leave DC. (The second ConversationActivity will correctly save its
draft to the db)
- Open DC again from the "Recent apps". (The first ConversationActivity
will be loaded. It will not know that there is a newer draft and still
show the old draft, or nothing if there was none. When it's closed, it
will overwrite the draft)

I came to this conclusion by logging all writes to the draft in the db.
Also, when I set `REQUEST_RELAY` to -1 (`startActivityForResult(intent,
-1) will behave the same as `startActivity(intent)`) (but that's not a
solution, sometimes we need startActivityForResult(), see e.g.
https://github.com/deltachat/deltachat-android/pull/1412)

What's still a little weird: I tried replacing all calls to
`startActivityForResult(-intent for ConversationActivity-)` with
startActivity(), and the issue didn't go away. Apparently it's only
enough if all calls are replaced, which is the same as setting
`REQUEST_RELAY` to -1. Maybe it's enough if one activity in the call
chain is called using startActivityForResult().

The call to `initializeDraft()` makes the activity start & resume 2-3ms
slower, which is probably acceptable.

While going back and forth with activities & sharing, I also encountered
some more bugs (without trying to reproduce them), but they are not too
annoying (as opposed to losing your draft) and I'm hesitant to changing
the activity-switching logic too much as it is so easy to just break
things again.
2021-02-05 22:32:50 +01:00
B. Petersen f03c8a5062 update translations 2021-02-03 13:55:01 +01:00
B. Petersen 5dbe4bc9e2 update local help 2021-02-03 13:36:36 +01:00
link2xt 9e610e5d4b Replace 4 weeks option with 5 weeks option
While 4 weeks always fits in a month,
5 weeks (35 days) always covers at least a month,
so it can be used in a situation where messages are required to
be stored for a month.
2021-02-03 13:34:05 +03:00
adbenitez b02a263664 update version number 2021-02-02 14:44:31 -05:00
adbenitez 56ce243376 update submodule 2021-02-01 20:22:16 -05:00
adbenitez fb0beb77f6 undo video tweaks 2021-02-01 19:34:11 -05:00
adbenitez 8d07dcf0a5 Merge branch 'lite' 2021-02-01 17:01:56 -05:00
adbenitez a0024b5201 add submodule 2021-02-01 17:01:33 -05:00
adbenitez 6d4ddba654 Merge branch 'lite' 2021-02-01 16:59:39 -05:00
adbenitez 2bdb000361 add submodule 2021-02-01 16:59:28 -05:00
adbenitez 3361e426fb Merge branch 'lite' 2021-02-01 16:57:14 -05:00
adbenitez a04321981b Merge remote-tracking branch 'upstream/master' into lite 2021-02-01 16:56:43 -05:00
adbenitez 34df284caf Merge branch 'master' of github.com:adbenitez/deltalab-android 2021-01-31 02:33:10 -05:00
adbenitez c9e5d216f0 Merge remote-tracking branch 'upstream/master' 2021-01-31 02:32:52 -05:00
Asiel Díaz Benítez 0402755258 Merge pull request #2 from adbenitez/zhv_1.5.1
Some fixes from the zhv 1.5.1 code that does it get the same theme of…
2021-01-30 23:56:25 -05:00
B. Petersen 370335bf6e update translations 2021-01-30 23:34:14 +01:00
B. Petersen 90bb1eb559 add comments on ephemeral-timer-indexes 2021-01-31 00:45:13 +03:00
link2xt f155757cee Change list of ephemeral message options
Also match unknown options to some known option, not "disabled".
2021-01-31 00:45:13 +03:00
david bb210d9751 Some fixes from the zhv 1.5.1 code that does it get the same theme of Delta 2021-01-29 13:07:12 -05:00
B. Petersen cdfc9cf7c0 update translations 2021-01-29 15:29:05 +01:00
B. Petersen f593f27d98 harden WebView settings 2021-01-29 15:25:23 +01:00
B. Petersen 74cdd85815 add pinch-to-zoom options to message-html-view 2021-01-29 15:25:23 +01:00
B. Petersen 49c507b74c update translations 2021-01-28 23:10:19 +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
B. Petersen c0f590c59e update deltachat-core-rust submodule 2021-01-28 22:07:08 +01:00
adbenitez 6791172098 Merge branch 'lite' 2021-01-27 16:01:53 -05:00
adbenitez 1f02e306df update build.gradle and add submodule 2021-01-26 17:59:31 -05:00
adbenitez a7952dbdf7 Merge branch 'lite' 2021-01-26 14:54:55 -05:00
adbenitez 5c6652e153 add submodule 2021-01-26 14:54:47 -05:00
adbenitez 380e624ab8 add submodule 2021-01-26 14:49:58 -05:00
adbenitez 1d775843ab Merge remote-tracking branch 'upstream/master' into lite 2021-01-26 14:45:42 -05:00
bjoern 3130b8093b Merge pull request #1774 from deltachat/remove-get-first-name
adapt to removed dc_contact_get_first_name() api
2021-01-24 15:11:41 +01:00
B. Petersen 3914bf7ff4 adapt to removed dc_contact_get_first_name() api
use dc_contact_get_display_name() instead
2021-01-23 19:52:23 +01:00
adbenitez e320999f38 Merge branch 'lite' 2021-01-22 23:12:37 -05:00
adbenitez 45d5cd7667 update release worflow 2021-01-22 23:12:27 -05:00
adbenitez 9f358d7f50 Merge branch 'lite' 2021-01-22 22:41:41 -05:00
adbenitez f7976f5d43 add release workflow 2021-01-22 22:41:08 -05:00
adbenitez 1a3cc4519f Merge branch 'lite' 2021-01-22 17:31:28 -05:00
adbenitez ef39faeb4c Merge remote-tracking branch 'upstream/master' into lite 2021-01-22 17:30:28 -05:00
Alexander Krotov 94e5b0d702 Build preview APKs for all architectures 2021-01-23 01:22:22 +03:00