Commit Graph

657 Commits

Author SHA1 Message Date
bjoern f18831b196 set targetSdkVersion to 33 (#2649)
* set targetSdkVersion to 33

* api33 requires permission NEARBY_WIFI_DEVICES to access wifi

not sure, if this affects getSystemService(Context.WIFI_SERVICE),
however, we anyway do not ask for permissions here but just try/catch -
if things do not work, we just cannot get the wifi name

(we're not asking for permission as this would require LOCATION in the past -
and that would scare users that just installed Delta Chat
and select "Add Second Devive".
this is the exact reason why NEARBY_WIFI_DEVICES was introduced, btw.
so in case getting the Wifi name does not work on api33,
we can consider asking for a permission - would still be on startup, however)

* update storage permissions in manifest

according to https://developer.android.com/training/data-storage/shared/media#storage-permission

* also update compileSdkVersion

* api33: adapt audio permission request

* api33: adapt gallery permission request

* request correct permissions for the 'photo rail'

* request correct permissions for avatar selection

* api33: storage and audio permission not needed

* add comment wrt 'camera roll'

* add POST_NOTIFICATIONS to the manifest, this already allows to enable notifications in the system settings

* ask for POST_NOTIFICATIONS permission on startup

* explain how to re-enable notifications if initially disabled

* prefer a device message over an alert

* show in settings if notifications are system-disabled
2023-10-03 00:42:20 +02:00
adbenitez 7b21dacc72 rename reactions_details_title to reactions 2023-09-29 14:39:42 +02:00
Asiel Díaz Benítez 6bf5e9bfd0 Merge branch 'stable' into adb/issue-2675 2023-09-28 21:47:52 -04:00
adbenitez e6107c4dcf add reactions details dialog 2023-09-29 03:45:35 +02:00
B. Petersen e1a36cfeae clarify 'less' 2023-09-28 22:23:32 +02:00
B. Petersen ecd8558e7f reword 'Built-In Camera' to 'In-App Camera'
built-in may also refer to the camera hardware build into you phone,
esp. on some translations this may get confusing
2023-09-28 22:23:32 +02:00
B. Petersen 660f0e90c3 do not pass +NUM to translations
i just checked all translations from Signal,
they all use `+NUM` or very few `+ NUM`
(the latter might be a typo as transifex makes it easy to mess up with spaces).

also, the string would be hard to explain to translators
and would probably result in quite some questions.

if a language pops up that need sth. different,
we can still iterate.
2023-09-28 22:23:32 +02:00
B. Petersen d208b011c5 show 'verified by SELF' as such
core was changed to return SELF from `get_verifier_id()`
at https://github.com/deltachat/deltachat-core-rust/pull/4754 -
until then, core will return always a contact-id,
which is equal to the current state
2023-09-28 21:46:15 +02:00
adbenitez 974bec7a78 fix error 2023-09-27 22:36:09 +02:00
adbenitez a38ad255da basic display of reactions 2023-09-27 20:41:49 +02:00
B. Petersen 30d4febee7 use system camera as default
the system camera has usually more features (flash, physical zoom, filter)
and is less buggy than the mostly unmaintained built-in one.
also, the system camera seems to be more supported
(isDeviceSupported() is not needed) and does not require to ask for permission.

there is still a switch in "advanced settings" to use the old built-in camera,
however, at some point we may remove the old code completely.
2023-09-27 18:22:55 +02:00
Asiel Díaz Benítez 6bda2b290a Merge pull request #2662 from deltachat/adb/webxdc-rounded-corners
set rounded corners for webxdc app icons
2023-09-25 14:49:48 +02:00
adbenitez 32a70bd8da apply suggestions 2023-09-25 14:39:44 +02:00
adbenitez b4fe0b30e7 use isBigScreen and isLandscape attrs 2023-09-25 13:17:55 +02:00
adbenitez 9ff3693746 set rounded corner for webxdc icons 2023-09-25 13:08:13 +02:00
adbenitez 287e1d25b0 fix bug if already in landscape mode, and improve tablet support 2023-09-25 01:20:20 +02:00
link2xt 85f1965a1d fix: add missing bqi entry to language_values array 2023-09-05 11:20:06 +00:00
bjoern 93acb0e4bc add 'Close Window' string needed for desktop (#2644) 2023-08-31 16:57:48 +02:00
bjoern e02e2d7735 adapt videchat instance example (#2643)
- meet.jit.si is no longer usable without registration,
  so does not work smoothly for ad-hoc calls

- basicwebrtc: protocol is no longer build-in in any app,
  so that example does not make sense as well

this is an intermediate step,
we want to get rid of the example string completely
and instead show the URLs of the predefined settings.

closes https://github.com/deltachat/deltachat-android/issues/2642
2023-08-31 16:15:10 +02:00
B. Petersen 081e658a5d clarify new webxdc-send-to-chat-strings 2023-08-31 14:51:17 +02:00
B. Petersen 254a78bb02 typo 2023-08-07 10:30:43 +02:00
bjoern 432c7d29d6 update translations and help, add Luri Bakhtiari (#2628)
* update translations: eo, fa

* add language: bqi (Luri Bakhtiari)

* update locale language name for arab language, see discussion at https://github.com/deltachat/deltachat-desktop/pull/3338#discussion_r1283543601

* update local help
2023-08-04 22:27:04 +02:00
adbenitez e7523d6245 try to fix popup/dialog background in webview 2023-06-25 01:55:59 +02:00
B. Petersen 48a963a5fe update translations 2023-06-21 22:44:56 +02:00
bjoern bf0f2e1449 add strings for improved sendToChat title (#2592) 2023-06-21 22:39:42 +02:00
B. Petersen ed80c3eeec update translations: en, de 2023-06-20 12:36:47 +02:00
B. Petersen 0891dcb186 fix '>' in xml 2023-06-20 11:44:26 +02:00
bjoern b8a38ff5cf prepare 1.38.0 (#2590)
* update changelog for 1.38.0

* update device message for 1.38.0

* bump bersion to 1.38.0

* make device message translatable
2023-06-20 11:38:45 +02:00
bjoern d984710721 add select_chat (#2589) 2023-06-16 16:26:27 +02:00
B. Petersen 8267e35328 give more context to 'last_seen' 2023-05-22 20:04:57 +02:00
Simon Laux b33394f73a add strings for verified, verified by and last_seen_relative (#2563)
* add strings for `verified`, `verified by` and `last_seen_relative`

for https://github.com/deltachat/deltachat-desktop/pull/3227

partially addresses https://github.com/deltachat/deltachat-android/pull/2429:
because it addresses one key `last_seen_relative`

* Apply suggestions from code review

Co-authored-by: bjoern <r10s@b44t.com>

---------

Co-authored-by: bjoern <r10s@b44t.com>
2023-05-18 12:47:08 +02:00
bjoern e50a13f371 streamline map wording (#2562)
* streamline menu

- remove prefix 'Show', we are not using it at most other places,
  nor do comparable UI

- move 'All Locations' below 'All Media',
  this seems to be more logical
  (we were even thinking of making 'Locations' a tap in 'Media')

* add missing plural form for 'Location' (needed for iOS map experiments, maybe also the better title for the in-chat-maps in general)
2023-05-15 12:40:44 +02:00
Hocuri ca55fbdf33 Tweak chatlist colors: Make titles more visible in dark mode (#2556)
Before, the chat names were as bright as the subtitles.
2023-05-06 23:47:52 +02:00
B. Petersen 2611a677fc init Romanian translation 2023-04-18 20:51:05 +02:00
B. Petersen dcab41b1bf update translations 2023-04-18 16:26:00 +02:00
bjoern d7c53d8cb4 add 'load remote images' strings as needed by desktop (#2536) 2023-04-07 23:12:01 +02:00
Asiel Díaz Benítez 6f2d19f6b0 Merge pull request #2523 from deltachat/adb/issue-2492
start with light/dark theme depending on system theme
2023-04-06 08:53:55 -04:00
bjoern 31939dc977 make transfer-backup devicemsg translatable (#2533) 2023-04-04 19:44:54 +02:00
B. Petersen 99e0f8fbff 1.36.0 hotfix: fix typo in english device message 2023-03-29 12:39:43 +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
adbenitez bae052d735 start with light/dark theme depending on system theme 2023-03-27 16:33:00 -04: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 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 f3b1493dc3 remove now unused strings 2023-03-27 10:29:26 +02: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 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
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