Commit Graph

1842 Commits

Author SHA1 Message Date
Asiel Díaz Benítez 72acc5fffc separate request and archive badges (#1997) 2021-07-30 12:43:10 +02:00
bjoern a7d6dda1a3 hide question from request panel for now (#1996)
* hide question from request panel for now, if needed we can do something more specific in the future

* remove 'Done' toast to avoid problems with lost activity

for whatever reason,
i just got a crash related to the toast that could not find its activity,
probably we should have used the app context and not the activity.

however, the toast was annoying me already,
there is no point in adding it, the change is visible instantly to the user
on the screen.
2021-07-29 23:36:16 +02:00
bjoern 2e9f7e58f2 tweak 'Archived Chats' and 'Requests' (#1991)
* add 'Archived Chats' menu entry

the menu entry is at the place where the 'Contact Requests' were before -
that way, ppl may find existing contact requests easier.

moreover, it is now possible to access 'Archived Chats'
without endless scrolling ;)

* for archived requests, show both tags

* show a hint when 'Archived Chats' is empty

* contact requests do not display unread count; do not retrieve it and do not show text in bold
2021-07-29 10:18:51 +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 b1db770f5f Speedup returning to chatlist a bit (#1987)
When working on
https://github.com/deltachat/deltachat-android/pull/1975, I noticed that
synchronisation takes quite some time here
2021-07-25 09:17:24 +02:00
bjoern 3cbaafb437 use 'Updating…' instead of 'Getting new messages…' (#1984)
- 'Getting new messages…' is not always fitting,
  the messages may be old or they are not visible as messags at all
  (read receipts, setup-contact, sync).
  'Updating…' is better fitting here.

- 'Getting new messages…' is a bit too long and results in
  linebreaks on smaller devices.
2021-07-23 08:27:57 +02:00
adbenitez 5e93b89ff4 add yggmail support: allow dotless email address and localhost domain 2021-07-21 02:09:56 -04:00
Asiel Díaz Benítez 1f23a5ad1b Merge pull request #1970 from deltachat/set-clipboard-with-utils
avoid code duplication, use Utils.writeTextToClipboard() everywhere
2021-07-19 12:43:50 -04:00
Asiel Díaz Benítez 214f11a62f Merge pull request #1968 from deltachat/adb-issue-1967
avoid NullPointerException in DcMsg.msgSetToIds()
2021-07-15 18:02:57 -04:00
Asiel Díaz Benítez f0290649f4 Update src/com/b44t/messenger/DcMsg.java
Co-authored-by: bjoern <r10s@b44t.com>
2021-07-15 17:56:10 -04:00
Asiel Díaz Benítez 4dce3734ff apply app/system theme to WebView (#1972) 2021-07-15 16:46:09 +02:00
Hocuri 7ad227f789 Hide unnecessary controls if you can't send (#1951)
- Imediately hide the compose panel when you left the group and
EVENT_CHAT_CHANGED was sent
- Hide the "Leave" button if you are not a member of a group. I solved
this by checking `canSend()`; I could also have checked
`dc_is_contact_in_chat(CONTACT_ID_SELF)`, but this would be more
complexity for now.

  When we add the possibility to leave mailing lists, the core will have
  to explicitly tell the UI whether it's possible to leave a chat, but
  that's not for now.
2021-07-15 13:25:11 +02:00
bjoern 466697c976 allow withdrawing and reviving qr codes, add corresponding strings (#1965)
the code-part of this pr is pretty simple, most work was already done in core at deltachat/deltachat-core-rust#2512

* add DC_QR_{WITHDRAW|REVIVE}_VERIFY{CONTACT|GROUP} constants

* ask to withdraw/revive qr codes

* reword redraw hints, fix typos

* reword revive statement

* Update res/values/strings.xml: Add "by others"

* Apply suggestions from comradekingu's code review

Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
Co-authored-by: Hocuri <hocuri@gmx.de>
Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
2021-07-14 17:46:20 +02:00
adbenitez d455526ca4 avoid code duplication, use Utils.writeTextToClipboard() everywhere 2021-07-08 20:25:17 -04: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 4480e7c5b0 avoid NullPointerException 2021-07-05 03:05:56 -04:00
cyBerta b75124a38d Merge pull request #1956 from deltachat/adb-issue-1908
unbind service in stopLocationEngine()
2021-07-01 10:29:36 +02:00
adbenitez c5d04791ec add support for openpgp4fpr schema in WebView 2021-06-25 15:41:17 +02:00
adbenitez 48e768bc04 make scroll to top/bottom work in the log view when the EditText is not focused 2021-06-23 00:37:37 -04:00
Asiel Díaz Benítez 9b4eae45fd Merge pull request #1955 from deltachat/adb-issue-1937
don't open chat directly if user clicks in blocked addresses
2021-06-22 12:39:31 -04:00
adbenitez 73f7daf119 URL-encode file name 2021-06-21 19:26:26 -04:00
adbenitez a83ca0077f unbind service in stopLocationEngine() 2021-06-21 02:39:45 -04:00
adbenitez a5415ecc14 don't open chat directly if user clicks in blocked addresses 2021-06-20 19:06:06 -04:00
B. Petersen c873e9c607 allow quote-replies for stickers
once the sticker is sent together with the quote,
the quote is cleared.

if there is some draft text, however, that is kept as draft.
tickers together with text are discouraged.
2021-06-09 11:28:09 +02:00
B. Petersen 073c915d24 also allow image/webp as sticker format 2021-06-09 11:28:09 +02:00
B. Petersen d7729b6001 send images from 'Image keyboard' as stickers
see https://developer.android.com/guide/topics/text/image-keyboard
2021-06-09 11:28:09 +02:00
bjoern 096cfc81ab refine wording of remaining screenlock (#1944)
we keep using the screenlock for "Backup" and "Manage keys";
these dialog always used the wording of the "global" screenlock,
sth. as "Please Unlock Delta Chat", however, that wording was always wrong
as Delta Chat itself is not locked in these situations.

this pr sets the title to the selected action
and just says "Please enter system secret to continue."

moreover, the toasts on canceling the action are removed,
they do not make much sense here,
there was a user action just before, so that is pretty clear anyway.
2021-06-02 14:08:14 +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
Hocuri 60f8c41263 In-Chat-Search: Start searching at the newest (=last) message, not the oldest 2021-05-16 11:12:22 +02:00
Asiel Díaz Benítez 51d6b39017 Merge pull request #1927 from deltachat/adb-issue-1906
use fallback value for fileName
2021-05-14 11:21:04 -04:00
Asiel Díaz Benítez c6737883c7 Merge pull request #1910 from deltachat/adb-issue-1909
adapt attached audio's background to theme
2021-05-14 11:20:11 -04:00
Asiel Díaz Benítez 1a90f6b5de Merge pull request #1913 from deltachat/adb-issue-1912
highlight system messages in search results
2021-05-14 11:19:09 -04:00
adbenitez f9a07675e1 request composer's focus after recording is done 2021-05-13 23:48:06 -04:00
adbenitez 25efe86c4a use fallback value for fileName 2021-05-13 22:59:23 -04:00
B. Petersen 3939bbe439 add missing 'Forwarded' string 2021-05-10 14:21:47 +02:00
B. Petersen 0d04e54402 let testers get a translated/updated device message 2021-05-07 16:03:51 +02:00
B. Petersen 2de5487b31 tweak wording 2021-05-07 14:29:55 +02:00
B. Petersen 39b67e8876 link to online privacy policy (this is also a gplay requirement) 2021-05-07 14:29:55 +02:00
B. Petersen db395006a0 add a rationale dialog, disclosuring background location usage 2021-05-07 14:29:55 +02:00
B. Petersen 6008c4a0b4 draft a device message, the message is pretty neutral and should fit for ios/desktop as well 2021-05-05 21:41:57 +02:00
adbenitez b86b515dc0 highlight system messages in search results 2021-05-03 17:18:38 -04:00
Asiel Díaz Benítez 9babc20f45 Merge pull request #1903 from deltachat/adb-issue-1902
don't collapse search menu on group changes
2021-05-03 16:00:34 -04:00
adbenitez 7fd9ceb50a adapt attached audio's background to theme 2021-05-03 15:38:56 -04:00
Hocuri 030f1f857d Also remove supportInvalidateOptionsMenu() calls 2021-05-03 12:29:06 +02:00
Asiel Díaz Benítez 0fefd21894 Merge pull request #1904 from deltachat/adb-issue-1901
improve app accesibility
2021-05-02 19:35:10 -04:00
adbenitez 5b520e1c9a remove invalidateOptionsMenu calls 2021-05-02 19:16:49 -04:00
adbenitez fc1b7f7f31 remove unneeded linkify 2021-05-01 17:48:32 -04:00
adbenitez 5e1066752a use current emoji set in message details and make text selectable 2021-04-30 19:20:05 -04:00
adbenitez f1ac11c9ae use the same emoji style everywhere across the app 2021-04-30 00:09:34 -04:00