Commit Graph

2935 Commits

Author SHA1 Message Date
B. Petersen e076ca45ba tune down usage of screen-lock
for various reasons,
screen-lock will be removed completely in one of the next versions.

- if screen-lock was enabled before, add a warning
  and keep the options (user can switch screen-lock on and off
  until it will be finally removed)

- if screen lock was disabled before,
  hide the corresponding options,
  (the user will not be able to enable screen-lock anymore)

reasons for removing are:

- hard maintainability on different android versions, see discussions at
  https://github.com/deltachat/deltachat-android/issues/1208 and
  https://github.com/deltachat/deltachat-android/pull/1279 and
  https://github.com/deltachat/deltachat-android/pull/1319 and offline.
  ftr, also the used api createConfirmDeviceCredentialIntent() is deprectated,
  so another set of api calls would be needed in the soon future.

- compared to the effort, few security is added,
  the function is only available if the system is protected anyway,
  one just have to repeat the system secret.

- might even worsen overall security - if app login secret is peeked,
  and attacker will also have the system secret.

- the functions stands in the way of moving forward to a
  cross-platform solution (however, not sure if this will really come)
2020-09-17 16:26:19 +02:00
bjoern 530cd8707f Merge pull request #1625 from deltachat/editorconfig
Add EditorConfig
2020-09-16 00:46:05 +02:00
Alexander Krotov e407a0dc53 Expand tabs in dc_wrapper.c 2020-09-15 23:57:22 +03:00
Alexander Krotov cd48e56af4 Add EditorConfig
It documents indentation style for source files.

See https://editorconfig.org/ for more.
2020-09-15 22:23:44 +03:00
B. Petersen 310b8bffd8 update translations 2020-09-14 15:36:01 +02:00
B. Petersen a626cf729b bump version to 1.13.2 (beta series) 2020-09-13 20:34:25 +02:00
B. Petersen fa25cbd7ef update deltachat-core-rust submodule 2020-09-13 18:53:02 +02:00
B. Petersen 64831a4b27 update translations 2020-09-13 18:18:58 +02:00
B. Petersen 7488dd2394 update translations 2020-09-12 22:53:25 +02:00
bjoern b4cdf2caf2 Merge pull request #1624 from deltachat/better-configure-errors
adapt to new dc_configure() error handling
2020-09-12 22:49:08 +02:00
B. Petersen b51cbfce1d adapt to new dc_configure() error handling
errors that should be shown to the user
come from DC_EVENT_CONFIGURE_PROGRESS(data1=0) as data2 now;
there is no need to show the captured error any longer
(which was unreliable and hard to handle from core site).

there is some capturing-code left as needed for other parts,
but it is not used for configuration anymore.
2020-09-12 22:33:16 +02:00
B. Petersen 4c9f336071 bump version to 1.13.1 (beta series) 2020-09-12 22:32:57 +02:00
B. Petersen 30ef262dcd update deltachat-core-rust submodule 2020-09-12 21:49:02 +02:00
B. Petersen fb6ad8a57e update translations 2020-09-12 21:48:47 +02:00
B. Petersen 44a3e6636b update translations 2020-09-12 16:18:44 +02:00
bjoern 137edaab1d Merge pull request #1622 from deltachat/update-chatlist-times
add chatlist time to update relative times
2020-09-12 16:10:04 +02:00
bjoern 46e4eff2b9 Merge pull request #1620 from deltachat/hide-keyboard
hide keyboard when leaving edit-name
2020-09-12 16:09:43 +02:00
bjoern 152ea7c06b Merge pull request #1621 from deltachat/add-log-warning
prefix log by a hint about sensitive information
2020-09-12 16:09:24 +02:00
bjoern 39b82a72ca Merge pull request #1618 from deltachat/remove-dead-code
Remove dead code
2020-09-12 16:09:06 +02:00
B. Petersen a1d5f72666 add a timer that redraws the chatlist every minute so that the relative times do update 2020-09-11 22:03:12 +02:00
B. Petersen 65692a1f09 prefix log by a hint about sensitive information
- having this is the text has the advantage that the hint is
  also in place when the log is already exported,
  editing is maybe even easier later

- if needed, we can make the hint translatable at a later point,
  not sure, however, if this is useful as most of the log is english anyway.
2020-09-11 18:16:00 +02: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
B. Petersen be772ac668 fix padding and cursor for edit-name-dialog 2020-09-11 14:55:30 +02:00
B. Petersen e5112616bd remove some more unused function parameters 2020-09-10 00:41:16 +02:00
B. Petersen f27b530118 remove some unused minor functions and parameters 2020-09-10 00:22:26 +02:00
B. Petersen 6c0c7f358d remove unused RequirementListener/RequirementProvider 2020-09-09 23:38:58 +02:00
B. Petersen ddee52171e remove useless name requirement from JobManager 2020-09-09 23:18:24 +02:00
B. Petersen 4350fe120c remove dead code (by Android Studio / Analyze / Run Inspection by Name / Unused declarations 2020-09-09 22:55:18 +02:00
B. Petersen 4874b4d0ea removed unused strings, all checked with ./tools/grep-string.sh 2020-09-09 17:51:49 +02:00
B. Petersen eef5bfbdb1 remove older migration code 2020-09-09 17:51:49 +02:00
B. Petersen c51ad1f597 update translations 2020-09-09 17:51:25 +02:00
B. Petersen f7a7b48c8d update deltachat-core-rust submodule 2020-09-09 16:30:34 +02:00
B. Petersen 628c3780f3 update translations 2020-09-09 16:26:06 +02:00
cyBerta 3ad7822504 Merge pull request #1617 from deltachat/fix-relaunch2
fix launch if there is an ongoing process
2020-09-09 15:57:22 +02:00
cyBerta 27e58cc3e4 Merge pull request #1612 from deltachat/disappearing-not-experimental
make 'disappearing messages' a standard-feature
2020-09-09 15:42:40 +02:00
cyBerta 4153e34a00 Merge pull request #1616 from deltachat/battery-rationale
add rationale to ignore-battery-optimization request
2020-09-09 15:42:01 +02:00
B. Petersen 46f3412409 abort export on app relaunch 2020-09-09 14:19:45 +02:00
B. Petersen 57b3294848 open app with recent activity on tap on GenericForegroundService 2020-09-08 23:13:23 +02:00
B. Petersen 9588fb4fd4 pervent starting activities when a foreground-service is started 2020-09-08 23:13:23 +02:00
B. Petersen 1f29314a47 add isForegroundTaskStarted() 2020-09-08 16:01:28 +02:00
B. Petersen 5ab682f2ab use same rationale in device message (the device message is only added when the direct-ask was cancelled) 2020-09-08 12:41:02 +02:00
B. Petersen fa214e0163 reword, use 'continue' instead of 'ok' 2020-09-07 15:50:46 +02:00
B. Petersen 34c217576e reword rationale dialog, remove 'cancel' button 2020-09-07 13:56:37 +02:00
B. Petersen 14dc59d78c add rationale to ignore-battery-optimization request
while it is more straight-forward to let the system ask the user directly -
as we do for most other permissions -
this is probably not favorable for requesting ignore-battery-optimization:

- other permissions requests are preceded by a clear user intention -
  tap on the camera, record voice etc.
  so it is clear to the user why a permission is needed.
  this is not true at the moment after installation
  (maybe the moment can be improved, btw)

- different systems have completely different text,
  partly focusing on "battery drain" - it is not clear to the user
  what would be the advantage of that

- some guidelines say, user interaction is needed before querying permission.
  there is room for interpretation, of couse,
  however, adding a rational with a "continue" button
  seems to fit better to these guidelines.
2020-09-06 23:44:34 +02:00
bjoern 742ce78c9c Merge pull request #1505 from deltachat/betterdoze
Already ask the user to disable doze on the first start.
2020-09-06 22:36:29 +02:00
B. Petersen 537ea4a195 move maybeAskDirectly() to the updateReminders()-AsyncTask, this avoids the keyboard not being closed during the permission-quesions 2020-09-06 21:20:13 +02:00
B. Petersen 1caaac58b9 move always-executed doze-checks to a try/catch block 2020-09-06 17:31:56 +02:00
B. Petersen 94cda3f81f move pref-string 'DOZE_ASKED_DIRECTLY' to the other pref-strings 2020-09-06 17:31:56 +02:00
Hocuri 954ca9b2d1 Already ask the user to disable doze on the first start 2020-09-06 17:31:56 +02:00
B. Petersen 7d0ac9f501 update translations 2020-09-06 17:31:27 +02:00