Commit Graph

70 Commits

Author SHA1 Message Date
bjoern f9286975d6 use more modern methods to track connectivity changes (#2403)
* use registerDefaultNetworkCallback() instead of deprecated CONNECTIVITY_ACTION

CONNECTIVITY_ACTION is deprecated, see https://developer.android.com/reference/android/net/ConnectivityManager#CONNECTIVITY_ACTION,

instead, we call maybe_network() at ConnectivityManager.NetworkCallback::onAvailable() callback.

* add more debug info
2022-10-29 15:42:44 +02:00
bjoern 8a98da3c78 replace deprecated DcAccountsEventEmitter by DcEventEmitter (#2376) 2022-08-29 18:05:34 +02:00
adbenitez e42012c483 set translations before starting I/O 2022-05-04 13:46:42 -04:00
Hocuri 11ec547386 Make it possible to create an encrypted database (#2186)
- Before Android 6 (API 23), there was no KeyStore yet. Currently, you can still create an encrypted account, but the passphrase is stored in clear-text, because that's how Signal is doing things.
- There is no option to manually set the keyphrase or to unlock via fingerprint. This has the advantage that we never need user input for unlocking the accounts and can simply unlock all accounts on startup and the obvious disadvantage that anyone with access to the unlocked device can open DC.
- Each account is encrypted with a different passphrase.
- When importing, you can choose to encrypt the account.
2022-01-22 20:57:16 +01:00
Hocuri b8cbc6d3b0 Add some @NonNull annotations, remove unused method (#2028)
This was in an attempt to find the cause for #2026. I didn't succeed,
but this is an improvement, anyway.
2021-08-11 23:13:12 +02:00
B. Petersen 634c8d1e49 use accounts event emitter 2021-07-26 21:37:32 +02:00
B. Petersen 78cd6cd8e8 create DcAccounts object on startup, migrate existing accounts 2021-07-26 21:37:32 +02:00
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 f941fd3c53 Remove Deaddrop chat (Android UI) (#1975)
See deltachat/deltachat-core-rust#2514

Fixes #1963
Fixes #1890

Before deleting a chat the user is asked for confirmation. Before blocking not, because blocking is not "destructive" (i.e. can be completely reverted by unblocking the contact). I'm wondering whether we should show a snackbar with an Undo button though, but we can probably wait for user feedback on this.

* Start removing deaddrop chat

* Generally works

* Fix the buttons

(it's not easy to not show one of the buttons in
ConstraintLayout; if problems turn up, we should probably
just not use ConstraintLayout)

* fix more things

* restartLoader() instead of notifyDataSetChanged() because the latter didn't do anything

* Archived badge

* Rename "Contact request" to "Request"

* oops

* Remove setStockTranslation(8, context.getString(R.string.chat_contact_request));

* Remove commented-out code, we probably won't need it

* Don't show "Delete" button for 1:1 chats

* Get rid of short flickering when declining a request

* Set the app's night mode to match the preference

This added 6ms to startup time, but I think that's OK, as
we will also be able to use more `-night` views in the future

* Make "Accept" text a bit brighter and easier to read in dark mode

* Check if the chattype is Group instead of members.length == 1
2021-07-26 13:01:59 +02:00
Hocuri 79cad60b8f Speedup first-time app load a bit (#1988)
I couldn't measure whether the app actually loads faster, as it varies a
lot (3.5s-4.5s on my device), but I could see that `getInstance()`
doesn't need 100ms-300ms on the main thread anymore.
2021-07-26 10:44:07 +02:00
Hocuri 8c0fac43c4 Remove screenlock (#1942)
* Remove screen lock feature, move the two remaining "App access" options into "Advanced"

Locking the app was removed a long time ago, so in "App access" in the
settings, the only two remaining items were "Screen security" and
"Incognito keyboard".

* Remove the now-unused strings

* remove app-access-category from main settings screen

Co-authored-by: B. Petersen <r10s@b44t.com>
2021-06-02 11:21:47 +02:00
B. Petersen 113a6c8f75 remove DcEventCenter from wrapper as it belongs to *.connect 2021-03-05 11:28:33 +01: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
cyberta 63c3b46263 bring back vector graphics for old devices 2020-07-22 18:43:40 +02:00
B. Petersen 2aa4b47e74 streamline rough logging on app-foreground etc. 2020-06-15 12:42:46 +02:00
B. Petersen 48f1693420 move in-chat sounds to InChatSounds class 2020-05-25 13:38:52 +02:00
B. Petersen 84c35c7483 replace global calls to MessageNotifierCompat with MsgNotificationManager 2020-05-25 13:38:51 +02:00
Hocuri 16dfd9f98c Fix #1328 Missing notifications: initializeIncomingMessageNotifier() in ApplicationDcContext, not ApplicationContext 2020-05-02 13:45:54 +02:00
B. Petersen 1203df4daf do not recreate/restart ForegroundDetector, NetworkStateReceiver, KeepAliveService on switching account 2020-05-02 11:14:26 +02:00
B. Petersen 4b8cec18c0 prototype FetchWork class and use WorkManager 2019-11-09 17:10:02 +01:00
B. Petersen fb235b7639 upgrade to androidx support libraries 2019-11-08 01:22:28 +01:00
B. Petersen 497b867364 update stock-strings on new system-language 2019-10-10 00:06:57 +02:00
B. Petersen 6e07439c33 set stock translations usign new api 2019-10-09 23:15:21 +02:00
cyBerta 35138022e9 notification refactoring 2019-05-28 01:11:40 +02:00
B. Petersen f0b5a895ec cleanup: remove unused JobSerializer and EncryptionKeys classes 2019-05-26 00:28:24 +02:00
cyBerta 8dd8a1d771 add 'plop' sound for in-chat incoming messages 2019-05-20 14:01:27 +02:00
cyBerta 2b37b3355c do not show unread message notifications on app start (relates to #451) 2019-05-16 11:30:43 +02:00
B. Petersen 7a33ad98d3 upgrade app to MultiDex as we have now more than 65k functions 2019-05-13 21:44:38 +02:00
B. Petersen b364a9dab6 init mapbox only as needed and disable telemetry 2019-05-01 17:40:52 +02:00
B. Petersen 7326677be0 Revert "Update messenger-backend submodule."
This reverts commit 2cf2505524.
2019-04-18 01:14:09 +02:00
B. Petersen 2cf2505524 Update messenger-backend submodule. 2019-04-18 00:49:21 +02:00
B. Petersen 2feecdeb7f disable LeakCanaray until the known leaks are fixed, see #841 2019-04-15 15:17:48 +02:00
cyBerta 868994ba10 add LeakCanary for memory leak detection in debug builds 2019-04-12 00:22:39 +02:00
B. Petersen 41031f428c comment 2019-03-30 22:58:15 +01:00
cyBerta 55973ef857 Merge branch 'master' into location-streaming 2019-03-13 13:03:34 +01:00
B. Petersen 2b67413b62 also update locale of ApplicationContext as this is neeed eg. by the core 2019-03-09 18:15:47 +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
cyBerta ecae4a14bb updates gradle syntax, integrates map dependency and removes gradleWitness until 'implementation' is supported 2019-03-05 21:12:55 +01:00
B. Petersen 36492f70a0 remove dead code 2019-01-23 15:12:15 +01:00
B. Petersen e250bb1460 multidex is now unneeded; remove it 2019-01-09 13:16:50 +01:00
daniel.boehrs 90775da352 Endless loop when enabling screen lock option #181 2018-12-21 13:08:16 +01:00
B. Petersen 1d7bf82b18 add logger from external source here 2018-12-10 23:12:08 +01:00
B. Petersen 46a7159c5a remove dead code and layouts, remove webrtc 2018-12-10 01:04:25 +01:00
B. Petersen df5f3ded29 remove expiring messages manager 2018-11-28 02:00:18 +01:00
B. Petersen 4f5b43579b move helper-classes from org.whispersystem here, tackles #138 2018-11-26 00:36:35 +01:00
B. Petersen ded1ad56a7 remove now unneeded dependecy-injector-classes 2018-11-20 23:06:50 +01:00
Angelo Fuchs 7db7c5beeb proper handling of events in the background threads #128 2018-11-20 11:51:24 +01:00
Angelo Fuchs 85e2203244 notifications are now recreated once on startup of the app (e.G. after a restart of the phone). 2018-11-19 12:22:06 +01:00