Commit graph

3947 commits

Author SHA1 Message Date
SpiritCroc
857ebde8ba Revert "Automatic SchildiChat string correction"
This reverts commit 5a4907362a.
2020-11-29 12:32:30 +01:00
SpiritCroc
77df970e1b Revert "Resolve required manual intervention in german strings"
This reverts commit 2590f8f690.
2020-11-29 12:32:30 +01:00
SpiritCroc
4fb7ff6cf5 Also hide encryption in room settings in simplified mode
Change-Id: I180d841cf3c62000d34b0642bfbf40eb1dd7037e
2020-11-23 13:35:11 +01:00
SpiritCroc
78766d7fc5 SC dark theme: fix touch guard transparency behind fab
Change-Id: Id8ab5e57236cd3383bebd3597b4ac2a3577a4f41
2020-11-23 13:35:08 +01:00
SpiritCroc
a7315ee56f FAB label background is finally dark in dark theme, so fix text color
Change-Id: Ifa43b19eca293fc15aab25f067d0516686e75a29
2020-11-23 13:35:05 +01:00
SpiritCroc
d850c7ac42 Simplified mode setting
- Hide public room functionality (rationale: people chatting with strangers on the internet can be considered advanced users)
    - Clicking on + / Rooms goes directly to "Create new room" instead of the intermediate step which allows joining public rooms
    - The "New room" screen would hide the setting to make the room public and publish it in the room directory
    - Hide room address settings in the room settings
- Hide encryption settings (rationale: encryption is hard to explain to users without background knowledge)

Closes https://github.com/SpiritCroc/SchildiChat-android/issues/23

Change-Id: If1a7f16880ca2f4333270ec29cc1d27f70a9132d
2020-11-22 17:42:08 +01:00
SpiritCroc
c3a20b5192 Enable "Prevent accidental call" by default
Change-Id: Ic1eb704bfb3c17add56c21ff6ac76c1968753ff1
2020-11-22 09:48:19 +01:00
SpiritCroc
8a06ad5c89 Reduce reserved space for dual-side bubbles
The reason for this being two times the reserved avatar size was
aligning it to the right side, even when having avatars on both sides.
By now, we hide the user's avatar, so one times the reserved avatar size
is enough.

For landscape tablets, don't reduce it, as we have enough screen estate.

Change-Id: I526d11e891612627418fe31bb40c3c131ea18c4c
2020-11-22 09:48:03 +01:00
SpiritCroc
ac713124e7 Single-side bubbles don't need margin to other side
The margin is there for dual-side bubbles, so the bubbles are more
connected to the same side of the sender avatar.
For single-side bubbles, this is a waste of space, so remove it for this
scenario.

Change-Id: Ib70cd0b1d30c2a8dbb356c80bd12a8310dceda8c
2020-11-20 09:46:46 +01:00
SpiritCroc
e1cb8c520a Fix SC theme reaction background colors after last uptsream merge
Change-Id: Ib86accac0a189eabd79f1159452c28d3dfe42e87
2020-11-08 17:36:51 +01:00
SpiritCroc
10e67bd5df Remember expand status for all categories except invite
We did remember low priority before. We might want to remember other
categories as well, but let's better keep the invite category expanded
by default.

Change-Id: Ia351de35751ce5a13f3739ed5f7a3528e315261f
2020-11-06 14:24:03 +01:00
SpiritCroc
eecbdde2fb Fix some colors (and fix compile)
Change-Id: I2cb3d144afbb9af306774bf3d763d1f299133517
2020-11-05 13:58:41 +01:00
SpiritCroc
2590f8f690 Resolve required manual intervention in german strings
This reverts commit 85b77f6555.

Change-Id: I4f0056cdfd099205899f46b19962799052a6b461
2020-11-05 13:27:39 +01:00
SpiritCroc
5a4907362a Automatic SchildiChat string correction
Change-Id: I2b19a9bd837a14a3aaf5830bcde6af5026ff9c05
2020-11-05 13:16:03 +01:00
SpiritCroc
58d99e10a0 Merge remote-tracking branch 'upstream/master' into sc
Change-Id: I004362e70c17eba5828e10ec9bf8b37568f64f01

Conflicts:
	vector/src/main/java/im/vector/app/features/home/room/list/RoomListViewModel.kt
	vector/src/main/res/menu/menu_timeline.xml
2020-11-05 13:15:55 +01:00
SpiritCroc
3837ce4204 Revert "Automatic SchildiChat string correction"
This reverts commit 835bde286c.
2020-11-05 13:14:16 +01:00
SpiritCroc
85b77f6555 Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "Resolve required manual intervention in german strings"""""""""
This reverts commit bde0020305.
2020-11-05 13:14:16 +01:00
Weblate
f3b8bb066c Merge branch 'origin/develop' into Weblate. 2020-11-04 13:43:47 +00:00
LinAGKar
b879be2b02 Translated using Weblate (Swedish)
Currently translated at 100.0% (1929 of 1929 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/sv/
2020-11-04 13:43:37 +00:00
Hivaa
52e699e125 Translated using Weblate (Persian)
Currently translated at 98.4% (1899 of 1929 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/fa/
2020-11-04 13:43:36 +00:00
Benoit Marty
b15fa7c0d7 Two elements in the task switcher (#2299) 2020-11-04 14:32:54 +01:00
Benoit Marty
d1d2c5f117
Merge pull request #2327 from vector-im/feature/bma/keysbackupcrash
Feature/bma/keysbackupcrash
2020-11-04 00:02:48 +01:00
SpiritCroc
600674e871 Room topic: tweak collapse behaviour some more
One could argue that collapsing is only useful if we have more than 2
lines to hide.
Also, @su-ex wants more lines, so let's go for 5+3.

Change-Id: I5f3580171d4b1544fd8f91f1de48cea85023b60a
2020-11-03 10:46:25 +01:00
Benoit Marty
0db1095373
Merge pull request #2334 from vector-im/feature/bca/crypto_db_clean
Feature/bca/crypto db clean
2020-11-03 10:31:53 +01:00
SpiritCroc
56b84a5201 Move footer time slighlty down in the bubble
Change-Id: I0d61691ca56a44a6c8efb01d2c447bac9d50c9cb
2020-11-03 09:49:53 +01:00
Benoit Marty
d4963dfb31 Use the same name for the 2 db log methods 2020-11-03 09:17:07 +01:00
Valere
3c7f61e45c Clean oldest gossiping entries on open
Add a dump of DB size on bug report
2020-11-02 17:45:08 +01:00
Corentin Noël
ac0418c796 Translated using Weblate (French)
Currently translated at 100.0% (1929 of 1929 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/fr/
2020-11-02 15:49:57 +00:00
Alexia Ŭerner
86b0094cdb Translated using Weblate (Esperanto)
Currently translated at 99.1% (1913 of 1929 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/eo/
2020-11-02 15:49:56 +00:00
zeritti
c0f07bc0a5 Translated using Weblate (Czech)
Currently translated at 100.0% (1929 of 1929 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/cs/
2020-11-02 15:49:56 +00:00
Valere
c3b8ed223d Increase log level of file logger 2020-11-02 16:39:06 +01:00
Benoit Marty
51ae2ce1e0
Merge branch 'develop' into feature/fix_sync_after_call_invite 2020-11-02 14:45:05 +01:00
Benoit Marty
9ff78051a9 Cleanup 2020-11-02 14:15:27 +01:00
Benoit Marty
0f21d80154
Merge branch 'develop' into fix_2100_2 2020-11-02 14:03:40 +01:00
SpiritCroc
4d269c586d Room summary: Increase number of topic lines before collapsing
Change-Id: I1e86a5a14a5598b25ef315e23d6752540eaeac4e
2020-11-02 12:30:39 +01:00
SpiritCroc
65c365a157 Don't crash language selection just because we are in debug
Change-Id: I429dfee9ad08bd2578a9e24d0662ad60cdd7c917
2020-11-02 12:25:10 +01:00
SpiritCroc
44355109d7 Improve direct chat handling
We show less information in direct chats in dual chat bubble layout, as
we assume that the senders know themselves, and see the chat partner
from  the action bar at the top.

However, there are some limitations:
- A directChat might actually include more members, due to helper bots,
  multiple accounts, or misconfigurations
- Even if a direct chat has exactly two members, there might have been
  some membership changes in the past

To account for this, we do the following:
- Only enable the direct message layout if there are exactly two members
  in the room currently (in addition to the isDirect-flag being set)
- Before hiding sender information, check if the sender is actually the
  expected chat partner. If not, fallback to showing avatar and name for
  this message.

Possible improvement for the future: if we have a message in a direct
chat by a non-member, following messages by the dm chat partner might
benefit from showing member name either way.

Change-Id: Ie4a204510990301175339e60469048b06669d36b
2020-11-02 12:25:10 +01:00
SpiritCroc
be2983053a For bottom timestamps, we can hide member names also when hiding avatars
Member names not really important in direct chats or for outgoing
messages.

Change-Id: I1d3328444daf571488b1d9b4d2d188d695c515b3
2020-11-02 12:25:09 +01:00
SpiritCroc
0b2d98b116 Don't reserve space for the expand text button if we need just one more line
Test: view Room summary with 1, 2, 3, 4 lines

Change-Id: Ic8a5e197f78ffeb8c1410d6ac3c859fd522decaa
2020-11-02 12:25:09 +01:00
SpiritCroc
12e97fbed2 Hide redactions by default
Change-Id: I498ca35464f7f42b70e21ca451b94702aefee8d6
2020-11-02 12:25:09 +01:00
SpiritCroc
d538ee4dcb Fix ic_send for attachments on fab
Floating action button has accent color background, so better not have
the icon accent color as well.

Change-Id: Ie5cd49a3e4631425c14183e022a16dde76d40004
2020-11-02 12:25:09 +01:00
SpiritCroc
056c27a270 Overlay image/video items with footer
Change-Id: I353ab5223b60677486d590d7c38a8186e3a8c3db
2020-11-02 12:23:35 +01:00
SpiritCroc
8602f1345b Message bubble footer area
For use with
- bottom timestamps in message bubbles
- unpersonal read receipts: maybe in the future, as we can not really
  update all relevant messages with the current db update mechanism.
  But we can use it for send-status for now.

Change-Id: I2de909362394e336f9aaba9f0d157e7c6fe8f9b1
2020-11-02 12:08:38 +01:00
Graeme Power
bd36c67bf2
satisfy ktlint demand for spacing around "*"
Signed-off-by: Graeme Power <gjpower@tcd.ie>
2020-10-31 17:43:21 +01:00
Graeme Power
fd4bfaea1f
Considerably faster QR-code bitmap generation
Directly assign colours to a colour buffer then use that buffer to
generate the bitmap. This is much faster than using Bitmap.setPixel for
every pixel.

Signed-off-by: Graeme Power <gjpower@tcd.ie>
2020-10-31 16:50:58 +01:00
Hakim Oubouali
3dfdb9cba0 Translated using Weblate (Central Atlas Tamazight)
Currently translated at 0.3% (6 of 1929 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/tzm/
2020-10-31 12:50:08 +00:00
Jeff Huang
f527dcf1fc Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (1929 of 1929 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/zh_Hant/
2020-10-31 12:50:07 +00:00
Besnik Bleta
ae05305e52 Translated using Weblate (Albanian)
Currently translated at 99.4% (1919 of 1929 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/sq/
2020-10-31 12:50:06 +00:00
Nikita Epifanov
386546dd21 Translated using Weblate (Russian)
Currently translated at 99.8% (1926 of 1929 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/ru/
2020-10-31 12:50:05 +00:00
Marcelo Filho
88021dbf5e Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (1929 of 1929 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/pt_BR/
2020-10-31 12:50:05 +00:00