Commit Graph

1605 Commits

Author SHA1 Message Date
B. Petersen 33fccc6d52 avoid unnecessary chat updates by filtering event-chat-id correctly 2020-09-20 16:28:54 +02:00
B. Petersen 41603e6688 pass DcEvent object to handlers to avoid error-prone casts 2020-09-20 15:50:40 +02:00
bjoern 2855240536 Merge pull request #1626 from deltachat/remove-outdated-reminder
remove outdated reminder
2020-09-19 13:42:25 +02:00
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
B. Petersen 097891e72a remove outdated reminder
the warning about outdated apps
was pretty unreliable in the past -
because of too short timings
and also because of the "installation date"
and the fact that an "installer" was used, is not always reliable.

also, the "installer date" could be wrong -
if the installation was done when the clock was altered badly.

as we cannot rely on the things the system provides here,
we move the whole thing to the core at
https://github.com/deltachat/deltachat-core-rust/pull/1901
which has also the advantage that this is done for all uis then.
2020-09-16 16:06:43 +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
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
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 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 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
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
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
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
bjoern ded8d0b181 Merge pull request #1608 from deltachat/notify-bg-switch
add switch to enable/disable battery optimizations
2020-09-06 13:44:10 +02:00
B. Petersen 877a49e0ef close generic foreground-service when hitting 'cancel' button 2020-09-05 00:49:21 +02:00
B. Petersen 33cd22552f make 'disappearing messages' a standard-feature 2020-09-04 14:28:52 +02:00
B. Petersen 6fa07b99fa move generic-notification-id to NotificationCenter to keep the overview 2020-09-03 18:50:09 +02:00
cyberta 42837ad56d no content intent for generic forground service - don't open the ConversationListActivity on notification click 2020-09-03 17:30:52 +02:00
cyberta 7a4e6a2982 close notification on export error 2020-09-03 17:30:52 +02:00
cyberta 653db39f6c tweak import export notification messages 2020-09-03 17:30:52 +02:00
cyberta 7a22513c7a use ContextCompat to start foreground services 2020-09-03 17:30:52 +02:00
cyberta ce8f4a58d2 reuse signals generic foreground service for import export 2020-09-03 17:30:52 +02:00
bjoern 868d4f46ee Merge pull request #1589 from deltachat/add_poi_improvements
Add POI improvements
2020-09-03 12:45:00 +02:00
B. Petersen 34755f05ff add a switch to 'settings / notifications' to disable battery optimisations 2020-09-01 01:44:43 +02:00
B. Petersen 87b46a037f adapt to new server_flags/mail_security/send_security api 2020-08-26 18:35:14 +02:00
B. Petersen 7f96c065e4 compile command-pattern only once on startup 2020-08-26 11:31:17 +02:00
B. Petersen 2e8aa15df5 use auto-linkify together with custom-linkify
unfortunately, auto-linking such as Linkify.addLinks(WEB_URLS...)
replaces custom-links set before by Linkify.addLinks(custom-pattern).

calling custom-linking after auto-linking may be too inaccurate
as in case of bot-commands such as /xkcd_123456
are treated partly as a phone number.

skipping auto-linking is hard as there are lots of things to do to get a
similar experience, see #1600.

finally, we solve the problem by replacing URLSpan by some other span after.
in fact, we do that anyway to get a different long-click behaviour.

the only important thing is that the span-replacement
must not be derived from URLSpan.
2020-08-26 01:18:06 +02:00
bjoern 375f9ac847 Merge pull request #1599 from deltachat/fix-burner
connect immediately after burner account scan
2020-08-25 18:22:32 +02:00
B. Petersen 9f98494a17 remove double call to Util.assertMainThread() as in original pr #802 2020-08-25 17:16:39 +02:00
cyberta 89b26fa590 fix regression caused by diversied emoji update. reintroduce 4707efb26a in order to fix app crash on map #793 2020-08-25 17:15:18 +02:00