Commit Graph

2077 Commits

Author SHA1 Message Date
Simon Laux 05fcac819e add dclogin scheme to qr code scan (#2366)
* add dclogin scheme to qr code scan

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

Co-authored-by: Asiel Díaz Benítez <asieldbenitez@gmail.com>

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

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

* handle DCACCOUNT and DCLOGIN schemes on new intents

* keep existing function name, that is maybe not less confusing, but at least already known

Co-authored-by: bjoern <r10s@b44t.com>
Co-authored-by: Asiel Díaz Benítez <asieldbenitez@gmail.com>
2022-09-29 18:34:01 +02:00
bjoern e13bb9488a add 'Audio' tab to profile (#2387) 2022-09-21 22:49:49 +02:00
bjoern 1fd0cad721 separate tab for private apps (#2386)
* move webxdc private apps to separate tab

* switch to scrollable tab layout; fixed layout may look not-so-nice with more tabs and longer descriptions that get a tiny font then
2022-09-21 22:18:48 +02:00
bjoern b50ea95f4d remove initiateKeyTransfer()'s wait dialog; the function is no longer blocking (#2385) 2022-09-19 10:10:33 +02:00
bjoern 3a7227b77b reword "Webxdc content" (#2377)
* reword "Webxdc [content]" to "Webxdc Apps"

adding "App" to the term makes things much clearer to the user,
was "Webxdc" is about.

eg. on iOS, we have an app selector meanwhile,
calling that _just_ "Webxdc" in the menu or in the title makes it pretty
unclear to the user what this is about.
same for the tab "Webxdc" on desktop or the default description in the summary.
otoh, calling it _only_ "Apps" (as now), may also raise false expectations
and may be mixed with "normal" apps.

so, "Webxdc App" seems to be a good approach.

there is also the term "Mini App" [^1], we could also go for that,
but this is a broader discussion as this would give up the term "Webxdc" partly.

in any case, if there is few space in the UI,
it seems to be okay to abbreviate with just "App" or "Apps" as needed,
if it is otherwise clear that the thing is a "Webxdc App" or "Mini App".

[^1]: the term "Mini App" is aleady known for similar types of apps
(some "small app" running in a "super app")
cmp. https://www.w3.org/TR/mini-app-white-paper/#what-is-miniapp .
of course, our "Webxdc Apps" are not compatible with other "Mini Apps"
however, this is also not the case between "Mini Apps" of other vendors
which also have different focuses.
so "Mini App" seems to be a broader term and does not imply compatibiliy.

* use term 'Private Apps' for webxdc content

* add some translator hints
2022-09-19 10:01:43 +02:00
Asiel Díaz Benítez 1252b862d8 load contact from database before calling wasSeenRecently() (#2382)
* load contact from database before calling wasSeenRecently() in ConversationActivity.handleEvent()

* add a comment about why handling DC_EVENT_MSG_DELIVERED is needed
2022-09-16 09:54:01 +02:00
adbenitez a631ef9da1 hide "leave group" option from menu for mailing list chats 2022-09-14 22:21:56 -04:00
bjoern 13c32b6552 rework system messages (#2380)
* do not set deprecated stock-translations

* mark now unused stock translations as deprecated

* add new system messages to english strings.xml

* add translator comments to new strings

* set new system messages
2022-09-11 21:03:54 +02:00
bjoern 33a543328f Revert "create adaptive shortcuts" (#2379)
* Revert "create adaptive shortcuts"

This reverts commit 35dd8c905b.

The cut out is not the largets possible circle inside the square icon
(as for group images or avatars, diameter==height)
but a much smaller circle (diameter==~0.6*height),
resulting in too many information being left out.

Therefore, it is better to leave icon layout to the OS.

(to get an idea about the amount of cut out, see a circular logo,
eg. the hextris one)

* add comment why not to use createWithAdaptiveBitmap()
2022-09-08 17:46:34 +02:00
bjoern e39842c692 restricted webxdc internet access (#2378)
* allow webxdc internet access if the corresponding flag is set by core

* do not intercept requests when internetAccess is granted
2022-09-06 11:22:08 +02:00
bjoern 8a98da3c78 replace deprecated DcAccountsEventEmitter by DcEventEmitter (#2376) 2022-08-29 18:05:34 +02:00
bjoern 3121cd9ade simplify contact list (#2374)
* simplify contact list

this also disables "fast scrolling" for the contact list;
the "fast scrolling" code is too much bound to the bubbles and a-z
to be preserved without much effort.

however, "fast scrolling" seems to be much less important
with a list sorted by "last seen".
there is also the rough idea to raise minimal-origin of contact list,
this would make the list much smaller
(<https://github.com/deltachat/deltachat-core-rust/pull/2411>),
otoh, not sure if #2411 is a thing for list sorted by "last seen".

also the other lists (chatlist, archive, blocked) may become quite huge as well
and do never have "fast scrolling".

in case it is really needed again,
however, we should go for the implementation available in RecyclerView since some time:
<https://stackoverflow.com/questions/45370246/how-to-use-fastscrollenabled-in-recyclerview>

* less padding as the A-Z decorations do not longer need space

* remove unused contact_selection_recyclerview_header
2022-08-29 13:56:06 +02:00
bjoern 4b3382dab5 use dc_contact_was_seen_recently() (#2373)
* add DcContact.wasSeenRecently()

* use DcContact.wasSeenRecently() and remove isSeenRecently()

* remove now again unused imports
2022-08-26 23:13:56 +02:00
adbenitez f4e693ca63 improve performance 2022-08-25 16:11:55 -04:00
adbenitez b66117de99 add "seen recently" indicator 2022-08-25 00:02:30 -04:00
adbenitez 35dd8c905b create adaptive shortcuts 2022-08-20 18:57:11 -04:00
bjoern 853000f8dc option to add webxdc apps to home screen (#2353)
* add 'Add to Home Screen' menus for webxdc apps

* make adding shortcut basically work

* avoid starting webxdc from foreign accounts

* recreate back stack, if possible

according to
https://developer.android.com/training/notify-user/navigation :
"When you start an activity from a notification,
you must preserve the user's expected navigation experience.
Tapping Back should take the user
back through the app's normal work flow to the Home screen [...]"

same seems to be true for shortcuts using the same class for constructing
the back stack.

the back stack is reconstructed for API 26 (Oreo, 2017) or newer,
for oder API `requestPinShortcut()`
only uses the top-level activity for the shortcut.
working around that is probably possible, but would be quite some effort in an
already complicated area and would result in bugs that are not so easy to see.

also, on these old androids, users are probably used to the no-back-stack
behaviour.

* show a warning if app was deleted

* add 'Add to Home Screen' also to gallery

beside chat- and webxdc-activity,
this is the third place where the webxdc is listed.

as adding may result in dialogs from the launcher,
we allow the option only for a single selected webxdc,
as otherwise a series of dialogs would pop up.

* show 'Done' toast short, this is what we are doing at all the other places when showing 'Done'
2022-08-15 11:30:14 +02:00
adbenitez 2172ca587e hide resend menu option if messages are not outgoing 2022-08-10 03:38:13 -04:00
B. Petersen 5bb010de5d reorder code for smaller diff 2022-07-26 22:45:29 +02:00
B. Petersen ebcf3914bd show post-addr in mailing list profile's subtitle; for saved messages/device chat, show subtitle as in chat view 2022-07-26 22:45:29 +02:00
B. Petersen 1c41b7705d more precise scope of the title usage 2022-07-26 22:45:29 +02:00
B. Petersen 57a32f3fb1 show ephemeral icon for both, contact and group profiles (before it was hidden in group profile, for whatever reason) 2022-07-26 22:45:29 +02:00
B. Petersen 9740607147 add DcChat::getMailinglistAddr 2022-07-26 22:45:29 +02:00
adbenitez 6f57eff172 update to new maplibre API 2022-07-22 23:48:42 +02:00
Hocuri 776f730e7c We won't blog post about this yet 2022-07-17 00:05:29 +02:00
Hocuri 05c52e622f hpk's wording suggestion, correct blog post link 2022-07-17 00:05:29 +02:00
Hocuri 3f9cab2f55 Add AEAP link in the UI instead of core 2022-07-17 00:05:29 +02:00
Hocuri 045ba76390 Add AEAP info dialog & strings 2022-07-17 00:05:29 +02:00
B. Petersen b661c77b47 rename "Docs" tab to "Files"
- "Files" is broader than "Docs"
  (documents are just one type of files,
  files can also be executables and whatnot)
- at other places in the app, we also speak of "Files"
  ("sending files" etc.)
- Delta Chat iOS also uses the term "Files"
2022-07-16 22:51:04 +02:00
bjoern 5cbb64da7a prepare 1.31.0 (#2336)
* bump version to 1.31.0

* update changelog for 1.31.0 (add core88 features)

* update changelog for 1.31.0 (android features)

* remove outdated device message, the final 1.32 will probably get a fresh one
2022-07-08 11:24:21 +02:00
Asiel Díaz Benítez 8fc1f3b060 Merge pull request #2333 from deltachat/adb/webxdc-allow-mailto
allow to open mailto links inside webxdc documents
2022-07-06 07:08:27 -04:00
Hocuri 057fabc1a6 Also identify media type if there are unknown characters in the filename (#2329)
fix #2306
2022-07-06 12:58:49 +02:00
adbenitez bdefbe0055 allow to open mailto links inside webxdc documents 2022-07-06 06:31:39 -04:00
B. Petersen 4b19cadbd2 use updated videochat strings
`videochat_instance_explain_2`+`videochat_instance_example`
is mostly the same as `videochat_instance_explain`
but offers nicer layout on desktop.

to make things easier for translators,
we aim to remove `videochat_instance_explain`.
2022-07-03 21:39:51 +02:00
B. Petersen d263ee58a6 allow forwarding info-messages
i think, it makes sense to allow that,
on receiving side they are just text,
see https://github.com/deltachat/deltachat-core-rust/pull/3446
for further reasoning.
2022-06-24 14:46:43 +02:00
B. Petersen 3227373110 use correct DC_STATE_OUT_FAILED name
in core, the state is called `DC_STATE_OUT_FAILED`,
not `DC_STATE_OUT_ERROR`.

the new name also fits better to existing names as `isFailed()`.
2022-06-08 12:13:53 +02:00
B. Petersen b488103c43 fix behavior of system-back-button for webxdc
for webxdc, the system-back-button should do the same
as the back-button in the title bar - just close the webxdc.

without this commit, it loads the previous page, which is often unexpected -
eg. many games use reload() for simplicity,
so you would have press one time 'back' for each round :)

even if there may be situations where this may be useful,
we do not want to encourage webxdc to rely on the system-back-button -
eg. desktop or ios currently just do not have this button.

technically, this pr changes the default -
so, for all classes derived from WebViewActivity, the system-back-button will
now behave as the title-bar-back-button.

for the local-help, this behavior is changed explictly -
i think, for HTML-mails, the 'just close' approach is also better.
2022-05-26 13:14:58 +02:00
B. Petersen 22a5c0a448 directly remember source_code_url instead of a flag that it is available 2022-05-18 22:58:20 +02:00
B. Petersen 3aa30899a5 add 'Source Code' item to webxdc menu
the code is a tiny bit more complicated
as we keep the call to get_webxdc_info() in background
and also avoid a second call to get_webxdc_info().
2022-05-18 22:58:20 +02:00
B. Petersen cae4536d20 split off openUrlInBrowser() from openOnlineUrl() 2022-05-18 22:58:20 +02:00
B. Petersen 7d98aa066f update title when it might be changed 2022-05-17 11:15:58 +02:00
B. Petersen a398c8f299 show document name before webxdc name nearby icons 2022-05-17 11:15:58 +02:00
B. Petersen b7472982a5 show document name instead of webxdc name in title 2022-05-17 11:15:58 +02:00
B. Petersen 88b2acb69d swap order to 'WebxdcName - ChatName' 2022-05-14 12:56:48 +02:00
B. Petersen 8c88ea3bfb show context of Webxdc window
show the chat name in front of the webxdc name to
- prevent phishing (the window will not show just the name of your bank)
- give the user an idea about where the webxdc sends messages to
  (important eg. when using the same webxdc from different chats)
2022-05-14 12:56:48 +02:00
adbenitez e42012c483 set translations before starting I/O 2022-05-04 13:46:42 -04:00
adbenitez e24a72de61 set baseURL 2022-05-03 07:21:49 -04:00
adbenitez 144a2df3c9 remove comment 2022-05-03 06:54:52 -04:00
Asiel Díaz Benítez 35a535705b Update src/org/thoughtcrime/securesms/WebxdcActivity.java
Co-authored-by: bjoern <r10s@b44t.com>
2022-05-03 06:53:16 -04:00
adbenitez 47190896d2 webxdc: allow internal pages and open some known schemes externally 2022-05-03 06:36:23 -04:00