Commit Graph

1542 Commits

Author SHA1 Message Date
B. Petersen 7da52a5532 update translations 2023-03-29 12:37:07 +02:00
bjoern affd120ba4 prepare 1.36 (#2522)
* update changelog for 1.36, core part

* update changelog for 1.36, android part

* bump version to 1.36

* add device message for 1.36

* qualify 'Add Second Device' as experimental also in device message

* apply recent suggestions to CHANGELOG
2023-03-29 12:32:42 +02:00
B. Petersen 9a9bddc45d update translations 2023-03-28 11:11:06 +02:00
adbenitez bae052d735 start with light/dark theme depending on system theme 2023-03-27 16:33:00 -04:00
B. Petersen c913d665de update translations 2023-03-27 18:40:47 +02:00
B. Petersen f4dd1dffe3 update translations 2023-03-27 17:33:53 +02:00
B. Petersen a3dd8513a4 update translations 2023-03-27 15:54:31 +02:00
B. Petersen bd6dd64c36 'Unlock to continue' is shorter and sufficient - the context is shown above - and the way to unlock (password, swipe...) is shown below 2023-03-27 15:53:15 +02:00
B. Petersen 93616bd268 update translations 2023-03-27 12:34:06 +02:00
B. Petersen d29f7ad5c9 center footers 2023-03-27 10:29:26 +02:00
B. Petersen d69d7c06be show a little message before QR code generation
we already had a confirmation dialog for probably most security-aware users
always when the device is protected by a screen lock.

this commits adds a more on-point text -
and shows the same text in a simple alert in case a device has no screen lock.
2023-03-27 10:29:26 +02:00
B. Petersen b3d21f0be9 move "experimental" hint below qr-code/scanner
the hint in the title was regarded as "not so nice" on first tests
and was even overseen.
2023-03-27 10:29:26 +02:00
B. Petersen f3b1493dc3 remove now unused strings 2023-03-27 10:29:26 +02:00
B. Petersen c2099f727c update translations 2023-03-25 20:22:38 +01:00
B. Petersen f2772da1dc update translations 2023-03-25 16:59:42 +01:00
B. Petersen 04ed2f9b38 add explicit experimental and version hint 2023-03-25 16:44:06 +01:00
B. Petersen a2765597dd add instructions 2023-03-25 16:44:06 +01:00
B. Petersen aa997eafb3 use title bar for qr-scan-activity, providing 'back', a title, and options in the future. the 'white only' should really be used only for the welcome screen 2023-03-25 16:44:06 +01:00
B. Petersen b36cfcabe9 add "Add as Second Device" to welcome view
ppl try already now to set up a second device from the welcome screen.
however, end up in logging into their email account again,
creating issues with keys and more.
a dedicated "Add as Second Devies" button targets this UX issue
by offering a clear path for setting up a second device.

moreover, the string "Scan Invitation Code" is used again (as on all releases),
this string is used quite a bit in different handouts,
changing that would worsen UX as well.

the "Restore from Backup is moved down,
if you really use this path, finding the button is the smallest issue.
the different layout of the button makes clear,
that this is not the preferred way to set up a new account
(but sure, to restore a backup :)
2023-03-25 16:44:06 +01:00
B. Petersen f931c9bc41 typo: receiver 2023-03-25 12:30:22 +01:00
bjoern 3cede346f3 add multi-device-setup (#2493)
* add DcBackupProvider add receiveBackup() wrappers

* add 'Add Another Device' item to settings

* add android-ifaddrs

core-rust uses getifaddrs() which is not available on android ndk.
pull in the code from https://github.com/morristech/android-ifaddrs
that provides an implementation.

* add BackupProviderActivity

* make SVG-hack reusable

* add BackupProviderFragment

* prepare scanning backup codes

* Revert "add android-ifaddrs"

This reverts commit 33b1424427620396f282805d37f8e05c67758546.

* more logging

* call receiveBackup() on scanning DC_QR_BACKUP

* Fixup for recvmmsg fallback

* protect BackupProviderActivity by system secret

* show transfer progress as provided form the core; hide qr-code once scanned

* add a permanent notification for the provider

* clarify what we are waiting for

* add a permanent notification for the receiver

* ask before finishing BackupProviderActivity

* it is fine to cancel the abort question by tapping outside the alert

* remove outdated comment from 'keep screen on'

* add and check TRANSFER_MODE

* rename BackupProviderActivity to BackupTransferActivity

* use our base activity

* start/stop IO in base activity

* use BackupTransferActivity also for scanning

* add BackupReceiverFragment

* show detailed transfer progress

* show details instead of percent during preparation, for now

* launch chatlist and remove welcome when transfer is done

* redirect to chatlist automatically after transfer succeeded

* reword

* make log accessible from send and receive activities

* bump version

* show error if backup provider creation fails

* remove unneeded format()

* show some context in the errors alerts, hide QR code sooner

* calculate transfer percentage as specified

* show a 'close' instead of a 'back' button to make visually clear, things are aborted (there is a quesion anyway)

* add option to copy backup-qr-code to clipboard

* remove vague retry statement, core will show a detailed error soon

* warn about QR codes on clipboard getting invalidated

* make basic strings translatable

* add troubleshooting menu item (once help is evolved, it may be a more visible button, may be localized, may be offline)

* rename to backup_transfer_fragment.xml

* add detailed instructions

* move 1,2,3 layout to the .xml

* fix layout

* use text size used elsewhere

* do best effort to show SSID on sending device

* make SSID code reusable for receiver

* adapt to otherwise used font style

* show ssid also for receiver

* minor refactorings

* make qr code subtitle translatable

* tune down 'same network hint' on scanning device

* add progress bar to provider

* add progress bar to receiver

* bump version

* use 'Add Second Device' wording

this seems slightly catchier as "Add Another Device"
and has less "A" esp. in "Add as Another Device" :)

also at least translation to german seems nicer ("Zweitgerät"),
most ppl will use max. two devices, but even if more,
that should still be fine.

this was also the first intuition also by other devs in their mockups,
so we'll give it a try.

* use "Exporting/Preparing/Prepared Account" wording

let's give that a try - "Account" is also widely used,
so that seems to make some sense.
even if not 100% fitting,
it seems better than introducing the new term "Collection".

* refine abort question

* Update res/layout/backup_provider_fragment.xml

Co-authored-by: Hocuri <hocuri@gmx.de>

* Update src/org/thoughtcrime/securesms/qr/BackupProviderFragment.java

Co-authored-by: Hocuri <hocuri@gmx.de>

* Update src/org/thoughtcrime/securesms/qr/BackupReceiverFragment.java

Co-authored-by: Hocuri <hocuri@gmx.de>

* Update src/org/thoughtcrime/securesms/qr/BackupTransferActivity.java

Co-authored-by: Hocuri <hocuri@gmx.de>

* Update src/org/thoughtcrime/securesms/qr/BackupReceiverFragment.java

Co-authored-by: Hocuri <hocuri@gmx.de>

* remove string duplicate

* refine 1,2,3

* simplify string ids

* focus on what matters

---------

Co-authored-by: link2xt <link2xt@testrun.org>
Co-authored-by: Hocuri <hocuri@gmx.de>
2023-03-24 15:22:26 +01:00
B. Petersen 9a8d7b6b0f update translations 2023-03-22 15:46:03 +01:00
Asiel Díaz Benítez 1523e7bc07 add app icon to webxdc info messages (#2503)
* add app icon to webxdc info messages

* Update res/layout/conversation_item_update.xml

Co-authored-by: Hocuri <hocuri@gmx.de>

* check if info message type is DcMsg.DC_INFO_WEBXDC_INFO_MESSAGE before loading parent message

---------

Co-authored-by: Hocuri <hocuri@gmx.de>
2023-03-22 15:44:56 +01:00
B. Petersen 4c3441be66 update translations 2023-03-19 11:05:41 +01:00
bjoern 44f3865bb3 use term "Wallpaper" instead of "Background" (#2501)
in english "Background" is already used for "Background connection",
"Background App Refresh", "Background Notification",
so using another term here make things clearer -
esp. when the option is seen without futher context.

also, many other app prefer "Wallpaper", eg. iOS, Android, Signal, WhatsApp ...
so it is also known from there.

all in all, the new term seems much clearer and
avoids misunderstandings.

note: this change is about english only,
no need to re-translate the other languages,
where "Wallpaper" may also should strange;
i added a hint that translators do not need to use the term literally.
2023-03-19 10:57:33 +01:00
B. Petersen 96e93abdf4 update translations 2023-03-18 16:34:10 +01:00
B. Petersen 490dbf0f80 update translations 2023-03-16 16:47:15 +01:00
B. Petersen 900fa11a78 update translations 2023-03-14 21:20:49 +01:00
bjoern 56cac342f9 streamline "App" wording (#2500)
the term "App" and "Apps" seems to be clear enough inside Delta Chat.
from outside, other terms may still be used to clarify things.
2023-03-14 21:09:19 +01:00
B. Petersen 6f47ba5289 update translations 2023-03-14 21:05:30 +01:00
Asiel Díaz Benítez 33db24b41f Merge pull request #2496 from deltachat/adb/improve-qr-show
set background image for QrShowFragment
2023-03-14 13:44:06 -04:00
adbenitez b116da053c set background image for QrShowFragment 2023-03-14 11:29:57 -04:00
B. Petersen 1ceef89ae8 update translations 2023-03-14 15:47:11 +01:00
bjoern 69600179d2 fix "empty hints" for "all media" view (#2499)
a common hint makes things easier,
and also has the advantage, that it is more clear to the user what the
focus of this view is as it picks up the wording from the title.
2023-03-14 15:41:54 +01:00
B. Petersen 8956838641 clarify 'Clear Chat', remove string prefix (we add new prefixes or postfixes only if the raw one is not free) 2023-03-14 11:31:26 +01:00
Asiel Díaz Benítez b4682b9d79 Merge pull request #2497 from deltachat/adb/tweak-menus
tweak main menu and settings
2023-03-13 20:27:03 -04:00
Asiel Díaz Benítez 920889c119 Merge pull request #2175 from deltachat/adb-clear-chat
allow to remove all messages from current chat
2023-03-13 20:18:44 -04:00
adbenitez 75f3a7c0df tweak main menu and settings 2023-03-13 19:45:09 -04:00
adbenitez ffb788e4b6 add "clear chat" 2023-03-13 19:08:06 -04:00
Asiel Díaz Benítez bdf0029085 Merge pull request #2489 from deltachat/adb/add-all-media
Add "All Media" option to global menu
2023-03-13 15:40:43 -04:00
adbenitez 4f457a5e62 add "All Media" option to global menu 2023-03-13 14:54:19 -04:00
B. Petersen 005475c521 update translations 2023-03-08 19:33:37 +01:00
B. Petersen 9d9932775a update translations 2023-02-23 20:22:44 +01:00
bjoern 2b75ec5515 remove unused lines; the iframe should include webxdc.js as needed (#2474) 2023-02-23 13:10:51 +01:00
B. Petersen 95d58765e2 update translations 2023-02-23 12:52:25 +01:00
B. Petersen 6a677517fc update translations 2023-02-13 11:24:16 +01:00
B. Petersen 0d52b49727 update translations 2023-02-12 12:48:12 +01:00
B. Petersen 81cd2aa729 update translations 2023-02-05 14:53:01 +01:00
bjoern 563c0296fa Combined webxdc patches (#2465)
* re-applying patch from @Hocuri from #2458

* apply sandbox isolation patch from @WofWca

* wait for gc as suggested by @WofWca, @Simon-Laux and others

* Update res/raw/sandboxed_iframe_rtcpeerconnection_check.html

Co-authored-by: WofWca <wofwca@protonmail.com>

* Update res/raw/sandboxed_iframe_rtcpeerconnection_check.html

Co-authored-by: WofWca <wofwca@protonmail.com>

* improve progress bar, inspired by @Simon-Laux and @WofWca

* comment about the gist of setNetworkAvailable()

* unify url-loading; this cleans up things and makes adding CSP more straight-forward

---------

Co-authored-by: WofWca <wofwca@protonmail.com>
2023-02-05 14:45:45 +01:00
B. Petersen 4ba6daae21 Revert "Webxdc fixes"
This reverts commit 6afddd84fff659fa6d8f727f2bf388d0c504058d.
2023-02-03 13:18:05 +01:00