Commit Graph

10359 Commits

Author SHA1 Message Date
Marcel Hibbe
20612c8543
avoid shimmer animations overlay with chat messages
The idea to show the progress bar (aka shimmer animation) was that it show not be shown at all if loading messages happens in less than a second (this was a better UX in my opinion).

The idea was to hide the progress bar when
ChatMessageStartState was triggered.

However there can be moment when adapter is still empty after ChatMessageStartState and if in this moment the DELAY_TO_SHOW_PROGRESS_BAR is reached before the adapter is actually filled, the overlay happens.
It could be a solution to move the hiding of the progress bar, however then special cases might have to be handled.

For simplicity, the logic for DELAY_TO_SHOW_PROGRESS_BAR is removed. Progress bar is always shown without a delay so it wont be triggered on a later moment and can't overlay the chat.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-01-17 13:40:57 +01:00
Marcel Hibbe
779c1627aa
Merge pull request #4620 from nextcloud/fix/4557/reactionsBackground
Fix reactions background
2025-01-17 12:14:41 +00:00
Andy Scherzinger
86db9f78c2
Merge pull request #4625 from nextcloud/renovate/com.github.spotbugs.snom-spotbugs-gradle-plugin-6.x
Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.2
2025-01-17 08:17:34 +01:00
renovate[bot]
c127261de1
Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-17 06:26:32 +00:00
Nextcloud bot
115f5e372e
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-01-17 03:02:33 +00:00
Andy Scherzinger
9fcd466576
style(icons): Update pdf icon to latest server version / material symbols
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-01-16 18:25:07 +01:00
Andy Scherzinger
9e3840c3a9
style(lint): replace magic number with constant
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-01-16 16:29:39 +01:00
Andy Scherzinger
e4088d0ddc
style(lint): Fix formatting
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-01-16 15:57:24 +01:00
Andy Scherzinger
0a6a1a703f
style(reactions): Add default vertical spacing at top of reactions
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-01-16 15:53:30 +01:00
Andy Scherzinger
a2dac5e0fa
style(reactions): ensure correct color coding of own reaction backgrounds
Resolves #4557

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-01-16 15:40:54 +01:00
Andy Scherzinger
b26b598a6c
style(reactions): Align reactions with text for preview messages
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-01-16 15:40:53 +01:00
Andy Scherzinger
9e7996b766
style(reaction): make reactions background rounded instead of pill-styled
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-01-16 15:40:53 +01:00
Marcel Hibbe
383546eb97
Merge pull request #4598 from nextcloud/bugfix/4503/fixTooManyRequestsException
fix TooManyRequestsException
2025-01-16 14:18:02 +00:00
github-actions[bot]
35d18cc4b4
Merge pull request #4615 from nextcloud/renovate/com.github.spotbugs.snom-spotbugs-gradle-plugin-6.x
Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.1
2025-01-16 13:38:50 +00:00
github-actions[bot]
2a4ca9f6ed
Merge pull request #4614 from nextcloud/renovate/androidx.datastore-datastore-preferences-1.x
Update dependency androidx.datastore:datastore-preferences to v1.1.2
2025-01-16 13:32:56 +00:00
Marcel Hibbe
69ddeaa06a
use lifecycleScope from chatActivity in OutcomingTextMessageViewHolder
defining an own scope and clearing it via onViewRecycled did not work out somehow (offline icon was wrong)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-01-16 14:29:12 +01:00
renovate[bot]
6a4edc9c71
Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-16 13:22:32 +00:00
renovate[bot]
0eabff6176
Update dependency androidx.datastore:datastore-preferences to v1.1.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-16 13:20:27 +00:00
github-actions[bot]
894c788ede
Merge pull request #4613 from nextcloud/renovate/androidx.datastore-datastore-core-1.x
Update dependency androidx.datastore:datastore-core to v1.1.2
2025-01-16 13:14:18 +00:00
renovate[bot]
ed13698c8f
Update dependency androidx.datastore:datastore-core to v1.1.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-16 12:55:06 +00:00
Marcel Hibbe
6e1114d4d8
fix TooManyRequestsException
By using
networkMonitor.isOnline.first()
the function
unregisterNetworkCallback
was triggered, which sometimes causes the ConnectivityManager$TooManyRequestsException.

So each time isOnline.first() was called, the callbackFlow would:
- Register a new NetworkCallback.
- Emit a value and cancel the flow.
- Unregister the NetworkCallback.

The exception was:
Exception android.net.ConnectivityManager$TooManyRequestsException:
  at android.net.ConnectivityManager.convertServiceException (ConnectivityManager.java:3771)
  at android.net.ConnectivityManager.sendRequestForNetwork (ConnectivityManager.java:3960)
  at android.net.ConnectivityManager.sendRequestForNetwork (ConnectivityManager.java:3967)
  at android.net.ConnectivityManager.registerNetworkCallback (ConnectivityManager.java:4349)
  at android.net.ConnectivityManager.registerNetworkCallback (ConnectivityManager.java:4319)
  at com.nextcloud.talk.data.network.NetworkMonitorImpl$isOnline$1.invokeSuspend (NetworkMonitorImpl.kt:61)

To fix this, the cold flow from callbackFlow is converted to a StateFlow.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-01-16 13:50:51 +01:00
Marcel Hibbe
ce7ed877ca
Merge pull request #4611 from nextcloud/bugfix/4610/fixNpeCurrentUserInConvList
hopefully fix NPE for currentUser in addToConversationItems
2025-01-16 12:48:53 +00:00
Nextcloud bot
44c84dd1c5
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-01-16 03:02:48 +00:00
Marcel Hibbe
13e5626159
hopefully fix NPE for currentUser
It seems there could have been a race condition because currentUser was initialized too late.
 I was not able to reproduce but hopefully this fixes it:
 - initialize currentUser earlier (moved from onResume to onCreate)
 - use currentUserProvider instead userManager

NPEs were reported via gplay:

1)
Exception java.lang.NullPointerException:
  at com.nextcloud.talk.conversationlist.ConversationsListActivity.addToConversationItems (ConversationsListActivity.kt:851)
  at com.nextcloud.talk.conversationlist.ConversationsListActivity.access$addToConversationItems (ConversationsListActivity.kt:151)
  at com.nextcloud.talk.conversationlist.ConversationsListActivity$initObservers$5$1.invokeSuspend (ConversationsListActivity.kt:394)
  at com.nextcloud.talk.conversationlist.ConversationsListActivity$initObservers$5$1.invoke (Unknown Source:8)
  at com.nextcloud.talk.conversationlist.ConversationsListActivity$initObservers$5$1.invoke (Unknown Source:4)

2)
Exception java.lang.RuntimeException:
  at android.app.ActivityThread.performResumeActivity (ActivityThread.java:5427)
  at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:5508)
  ...
Caused by java.lang.NullPointerException:
  at com.nextcloud.talk.conversationlist.ConversationsListActivity.shouldShowNotificationWarning (ConversationsListActivity.kt:1557)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-01-15 19:11:24 +01:00
Marcel Hibbe
6241c685fb
Merge pull request #4204 from nextcloud/timeout-immediate
Added option `Immediate` for passcode timeout.
2025-01-15 10:48:00 +00:00
parneet-guraya
6c67bf7b96
timeout option immediate
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-01-15 11:28:32 +01:00
Andy Scherzinger
fdb38de5d2
Merge pull request #4604 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-01-15 10:50:25 +01:00
Andy Scherzinger
209a6162df
Merge pull request #4603 from nextcloud/bugfix/4599/unreadMentionCutoff
fix to not cut off unread mentions bubble
2025-01-15 10:49:56 +01:00
nextcloud-android-bot
4045f8f4eb 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <android@nextcloud.com>
2025-01-15 09:37:49 +00:00
Marcel Hibbe
db8c4de028
fix to not cut off unread mentions bubble
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-01-15 10:33:52 +01:00
Nextcloud bot
172eddb217
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-01-15 03:03:33 +00:00
Marcel Hibbe
f39b1ddc19
Merge pull request #4567 from nextcloud/issue-4454-fix-msg-input-fragment-join-open-convo
Fixed bug that hides message input upon joining open conversations
2025-01-14 17:19:54 +00:00
rapterjet2004
19aec5460a
figured it out - was an error with offline conversations not syncing. Chat permissions were updated on server, but not on device.
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-01-14 16:35:55 +01:00
Nextcloud bot
f0d7ff53c6
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-01-14 01:43:51 +00:00
Nextcloud Android Bot
36716fa788 Weekly 21.0.0 Alpha 09 2025-01-13 03:12:47 +00:00
Nextcloud bot
6638f449a6
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-01-13 03:01:44 +00:00
Nextcloud bot
d3b3052436
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-01-12 03:13:26 +00:00
Nextcloud bot
7851de68e9
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-01-11 03:01:45 +00:00
Andy Scherzinger
85a0f08b96
Merge pull request #4594 from nextcloud/renovate/github-codeql-action-3.x
Update github/codeql-action action to v3.28.1
2025-01-10 20:31:04 +01:00
Andy Scherzinger
f829b8a840
Merge pull request #4595 from nextcloud/renovate/actions-upload-artifact-4.x
Update actions/upload-artifact action to v4.6.0
2025-01-10 20:30:44 +01:00
renovate[bot]
38018d1ed2
Update actions/upload-artifact action to v4.6.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 19:23:15 +00:00
renovate[bot]
ba29db84ee
Update github/codeql-action action to v3.28.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 19:23:11 +00:00
github-actions[bot]
60bae8784e
Merge pull request #4587 from nextcloud/renovate/daggerversion
Update daggerVersion to v2.55
2025-01-10 13:00:09 +00:00
Marcel Hibbe
88bb5d506a
Merge pull request #4422 from nextcloud/feature/4378/addTemporaryMessagesWhileSending
Feature/4378/add temporary messages while sending
2025-01-10 13:43:10 +01:00
renovate[bot]
6ed20f4b13 Update daggerVersion to v2.55
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 13:42:47 +01:00
Andy Scherzinger
ca9b3c978a
Merge pull request #4590 from nextcloud/renovate/com.github.spotbugs.snom-spotbugs-gradle-plugin-6.x
Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.0
2025-01-10 13:42:31 +01:00
github-actions
4f4ac5e772
Analysis: update lint results to reflect reduced error/warning count
Signed-off-by: github-actions <github-actions@github.com>
2025-01-10 13:18:47 +01:00
Marcel Hibbe
cd096366c5
change icons for message sending and messages sending failed
remove shadowed var

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-01-10 13:18:47 +01:00
Marcel Hibbe
68065d7e21
fix lint warning
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-01-10 12:32:32 +01:00
Marcel Hibbe
aa5b4d028a
remove click listener for failed messages (use default longclick)
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-01-10 12:32:32 +01:00