Commit Graph

10565 Commits

Author SHA1 Message Date
renovate[bot]
f1b91cb0e2
chore(deps): update github/codeql-action action to v3.28.10
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-21 16:36:44 +00:00
github-actions[bot]
f2b26cf8f6
Merge pull request #4754 from nextcloud/renovate/junit5-monorepo
fix(deps): update dependency org.junit.vintage:junit-vintage-engine to v5.12.0
2025-02-21 16:35:48 +00:00
renovate[bot]
1976cd042c
fix(deps): update dependency org.junit.vintage:junit-vintage-engine to v5.12.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-21 15:44:15 +00:00
Andy Scherzinger
4703a07d5f
Merge pull request #4752 from nextcloud/renovate/io.gitlab.arturbosch.detekt-detekt-formatting-1.x
fix(deps): update dependency io.gitlab.arturbosch.detekt:detekt-formatting to v1.23.8
2025-02-21 16:29:11 +01:00
renovate[bot]
9424805042
fix(deps): update dependency io.gitlab.arturbosch.detekt:detekt-formatting to v1.23.8
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-21 13:12:49 +00:00
Sowjanya Kota
56c119a004
Merge pull request #4748 from nextcloud/bugfix/noid/fixNpeWhenAdapterNull
avoid Npe for adapter in ConversationsListActivity
2025-02-21 14:06:10 +01:00
Marcel Hibbe
17f43e8b42
avoid Npe for adapter.
A NPE was reported for ConversationsListActivity.kt:537

Adapter is accessed with !! while it is not safe to access in term of lifecycle.
So there could have been a race condition.
The overall problem is not solved and may even have to wait for migration to Compose.
This is just a quickfix for v21.0.0

Reported crash was :

Exception java.lang.NullPointerException:
  at com.nextcloud.talk.conversationlist.ConversationsListActivity.filterConversation (ConversationsListActivity.kt:537)
  at com.nextcloud.talk.conversationlist.ConversationsListActivity.setConversationList (ConversationsListActivity.kt:472)
  at com.nextcloud.talk.conversationlist.ConversationsListActivity.access$setConversationList (ConversationsListActivity.kt:158)
  at com.nextcloud.talk.conversationlist.ConversationsListActivity$initObservers$5$1.invokeSuspend (ConversationsListActivity.kt:398)
  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)
  at kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2.emit (Emitters.kt:219)
  at kotlinx.coroutines.flow.FlowKt__ErrorsKt$catchImpl$2.emit (Errors.kt:154)
  at kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2.emit (Emitters.kt:220)
  at kotlinx.coroutines.flow.SharedFlowImpl.collect$suspendImpl (SharedFlow.kt:392)
  at kotlinx.coroutines.flow.SharedFlowImpl.collect (Unknown Source)
  at kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.collect (SafeCollector.common.kt:112)
  at kotlinx.coroutines.flow.FlowKt__ErrorsKt.catchImpl (Errors.kt:152)
  at kotlinx.coroutines.flow.FlowKt.catchImpl (Unknown Source:1)
  at kotlinx.coroutines.flow.FlowKt__ErrorsKt$catch$$inlined$unsafeFlow$1.collect (SafeCollector.common.kt:112)
  at kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.collect (SafeCollector.common.kt:112)
  at kotlinx.coroutines.flow.FlowKt__CollectKt.collect (Collect.kt:26)
  at kotlinx.coroutines.flow.FlowKt.collect (Unknown Source:1)
  at com.nextcloud.talk.conversationlist.ConversationsListActivity$initObservers$5.invokeSuspend (ConversationsListActivity.kt:399)
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:33)
  at kotlinx.coroutines.internal.DispatchedContinuationKt.resumeCancellableWith (DispatchedContinuation.kt:363)
  at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable (Cancellable.kt:26)
  at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable$default (Cancellable.kt:21)
  at kotlinx.coroutines.CoroutineStart.invoke (CoroutineStart.kt:88)
  at kotlinx.coroutines.AbstractCoroutine.start (AbstractCoroutine.kt:123)
  at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch (Builders.common.kt:52)
  at kotlinx.coroutines.BuildersKt.launch (Unknown Source:1)
  at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default (Builders.common.kt:43)
  at kotlinx.coroutines.BuildersKt.launch$default (Unknown Source:1)
  at com.nextcloud.talk.conversationlist.ConversationsListActivity.initObservers (ConversationsListActivity.kt:395)
  at com.nextcloud.talk.conversationlist.ConversationsListActivity.onCreate (ConversationsListActivity.kt:261)
  at android.app.Activity.performCreate (Activity.java:9149)
  at android.app.Activity.performCreate (Activity.java:9127)
  at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1526)
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:4152)
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:4361)
  at android.app.ActivityThread.handleRelaunchActivityInner (ActivityThread.java:6446)
  at android.app.ActivityThread.handleRelaunchActivity (ActivityThread.java:6329)
  at android.app.servertransaction.ActivityRelaunchItem.execute (ActivityRelaunchItem.java:82)
  at android.app.servertransaction.ActivityTransactionItem.execute (ActivityTransactionItem.java:60)
  at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem (TransactionExecutor.java:174)
  at android.app.servertransaction.TransactionExecutor.executeTransactionItems (TransactionExecutor.java:109)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:81)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2747)
  at android.os.Handler.dispatchMessage (Handler.java:112)
  at android.os.Looper.loopOnce (Looper.java:268)
  at android.os.Looper.loop (Looper.java:384)
  at android.app.ActivityThread.main (ActivityThread.java:8921)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:580)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:907)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-21 12:35:20 +01:00
Nextcloud bot
8aeaffa2bb
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-21 03:01:29 +00:00
Marcel Hibbe
d3a6532f08
Merge pull request #4746 from nextcloud/refactorContactsActivityCompose
ContactsScreen: extract Composables to files and simplify passed parameters
2025-02-20 17:57:07 +00:00
Marcel Hibbe
7615b92f14
extract Composables to files and simplify passed parameters
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-20 15:31:35 +01:00
Andy Scherzinger
5c11a2e7b9
Merge pull request #4745 from nextcloud/style/noid/MaterialSymbols
Update to Material symbols
2025-02-20 12:06:00 +01:00
Andy Scherzinger
2d37bb250b
style: Update twitter icon to X icon
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-02-20 11:37:55 +01:00
Andy Scherzinger
95e7e9c828
style: Update icons from Material Design to Material Symbols
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-02-20 11:37:54 +01:00
Nextcloud bot
43170a5cdf
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-20 03:05:31 +00:00
Nextcloud Android Bot
c50900802c Weekly 21.1.0 Alpha 06 2025-02-19 13:08:52 +00:00
Sowjanya Kota
e648b8846a
Merge pull request #4740 from nextcloud/bugfix/noid/improveContactsActivityDesign
Bugfix/noid/improve contacts activity design
2025-02-18 17:39:20 +01:00
Sowjanya Kota
8d7ce9fc5e
Merge pull request #4738 from nextcloud/bugfix/4701/avoidUninitializedInternalConvId
init other data earlier than ConversationModel
2025-02-18 15:50:00 +01:00
Marcel Hibbe
c5517c8426
fix background color for conversation creation
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-18 14:55:10 +01:00
Marcel Hibbe
903bed8fb4
improve colors for searchbar
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-18 14:55:10 +01:00
Marcel Hibbe
83c0d0b150
fix colors for header
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-18 14:55:10 +01:00
Marcel Hibbe
f76634511c
fix background color for contacts activity
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-18 14:55:09 +01:00
Sowjanya Kota
6e5f830fc5
Merge pull request #4739 from nextcloud/bugfix/noid/avoidUninitializedScopeInOnStop
check if scope is initialized before canceling
2025-02-18 14:52:23 +01:00
Marcel Hibbe
754e8a86fd
check if scope is initialized before canceling
without this fix, the scope may not have been initialized which threw the following exception:

Exception java.lang.RuntimeException:
  at android.app.ActivityThread.callActivityOnStop (ActivityThread.java:5658)
  at android.app.ActivityThread.performStopActivityInner (ActivityThread.java:5630)
  at android.app.ActivityThread.handleStopActivity (ActivityThread.java:5695)
  at android.app.servertransaction.StopActivityItem.execute (StopActivityItem.java:43)
  at android.app.servertransaction.ActivityTransactionItem.execute (ActivityTransactionItem.java:60)
  at android.app.servertransaction.TransactionExecutor.executeLifecycleItem (TransactionExecutor.java:282)
  at android.app.servertransaction.TransactionExecutor.executeTransactionItems (TransactionExecutor.java:150)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:93)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2595)
  at android.os.Handler.dispatchMessage (Handler.java:107)
  at android.os.Looper.loopOnce (Looper.java:232)
  at android.os.Looper.loop (Looper.java:317)
  at android.app.ActivityThread.main (ActivityThread.java:8592)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:580)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:878)
Caused by kotlin.UninitializedPropertyAccessException: lateinit property scope has not been initialized
  at com.nextcloud.talk.chat.data.network.OfflineFirstChatRepository.handleOnStop (OfflineFirstChatRepository.kt:807)
  at com.nextcloud.talk.chat.viewmodels.ChatViewModel.onStop (ChatViewModel.kt:103)
  at androidx.lifecycle.DefaultLifecycleObserverAdapter.onStateChanged (DefaultLifecycleObserverAdapter.kt:28)
  at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent (LifecycleRegistry.jvm.kt:320)
  at androidx.lifecycle.LifecycleRegistry.backwardPass (LifecycleRegistry.jvm.kt:272)
  at androidx.lifecycle.LifecycleRegistry.sync (LifecycleRegistry.jvm.kt:289)
  at androidx.lifecycle.LifecycleRegistry.moveToState (LifecycleRegistry.jvm.kt:142)
  at androidx.lifecycle.LifecycleRegistry.handleLifecycleEvent (LifecycleRegistry.jvm.kt:124)
  at androidx.lifecycle.ReportFragment$Companion.dispatch$lifecycle_runtime_release (ReportFragment.android.kt:190)
  at androidx.lifecycle.ReportFragment$LifecycleCallbacks.onActivityPreStopped (ReportFragment.android.kt:135)
  at android.app.Activity.dispatchActivityPreStopped (Activity.java:1633)
  at android.app.Activity.performStop (Activity.java:9197)
  at android.app.ActivityThread.callActivityOnStop (ActivityThread.java:5650)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-18 11:36:39 +01:00
Marcel Hibbe
1bcdeb2d46
init other data earlier than ConversationModel
because setData was called too late (after sendTempChatMessages was called from messageInputFragment, internalConversationId was not initialized in repository).
With this change, internalConversationId, credentials and urlForChatting are initialized earlier which should avoid the issue.
However conversationModel is still initialized quite late and should be accessed with caution. This could may be improved by better architecture..

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-18 10:48:17 +01:00
Marcel Hibbe
17702bbe92
Merge pull request #4729 from nextcloud/make_link_clickable
Make link clickable
2025-02-18 09:08:18 +00:00
sowjanyakch
ef957508a3
make link clickable
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-18 09:55:46 +01:00
Nextcloud bot
7ff365194c
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-18 03:02:57 +00:00
Marcel Hibbe
d387b2f5a7
Merge pull request #4734 from nextcloud/bugfix/4673/fixDuplicatedMessages
Avoid duplicated messages when activity is in background.
2025-02-17 16:58:31 +00:00
Sowjanya Kota
b3186bac76
Merge pull request #4703 from nextcloud/fix_placeholder_support
display label in the placeholder
2025-02-17 16:56:21 +01:00
sowjanyakch
80e98a0d8b
ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-17 16:41:46 +01:00
sowjanyakch
ea608781c4
remove unused constant
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-17 16:40:23 +01:00
sowjanyakch
edcadbcd37
fix detekt
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-17 16:36:40 +01:00
Marcel Hibbe
30caa435ae
Avoid duplicated messages when activity is in background.
onDestroy is not called when navigating to the next activity or bringing the app to background. That's why the adapter was not set to null and all messages were added another time the next time the activity comes to foreground. With this fix, the adapter is set to null in onStop.

All in all, the adapter handling may not be the best, but will be replaced by Compose anyway..

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-17 14:59:15 +01:00
sowjanyakch
f418955e1d
label styling
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-17 13:09:29 +01:00
sowjanyakch
a133804f65
format code
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-17 13:09:29 +01:00
sowjanyakch
1ad186b94b
display label in the placeholder
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-17 13:09:28 +01:00
Sowjanya Kota
5e872564b7
Merge pull request #4710 from nextcloud/issue-4707-edit-btn-fix
No longer does edit button overlap the recordAudioButton
2025-02-17 12:52:19 +01:00
sowjanyakch
00b1b1fe51
ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-17 12:25:43 +01:00
rapterjet2004
d46f2488a7
No longer does edit button overlap the recordAudioButton
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2025-02-17 12:25:43 +01:00
Marcel Hibbe
bd720b8261
Merge pull request #4702 from nextcloud/pr-4674-follow-up
Added offline check in handleHttpExceptions in ConversationsListActivity
2025-02-17 11:03:11 +00:00
rapterjet2004
9f9fd1a82e
Added offline check in handleHttpExceptions in ConversationsListActivity
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2025-02-17 11:42:56 +01:00
Nextcloud Android Bot
8571a25f99 Weekly 21.1.0 Alpha 05 2025-02-17 03:12:16 +00:00
Nextcloud bot
88384206e4
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-17 03:02:28 +00:00
Nextcloud bot
4667e565ad
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-16 19:46:29 +00:00
Andy Scherzinger
6632ccc0e6
Merge pull request #4728 from nextcloud/fix/noid/kotlinMonorepo2-1-10
fix(deps): update kotlin monorepo to v2.1.10
2025-02-16 20:02:03 +01:00
Andy Scherzinger
536708a565
fix(deps): update kotlin monorepo to v2.1.10
(org.jetbrains.kotlin:kotlin-serialization, org.jetbrains.kotlin:kotlin-gradle-plugin)

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-02-16 19:45:09 +01:00
github-actions[bot]
c811a03d73
Merge pull request #4720 from nextcloud/renovate/com.github.spotbugs.snom-spotbugs-gradle-plugin-6.x
fix(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.5
2025-02-16 17:36:57 +00:00
renovate[bot]
e7d3c87ab5 fix(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.5
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-16 18:25:30 +01:00
Andy Scherzinger
b0088fa0f6
Merge pull request #4716 from nextcloud/renovate/ksp-monorepo
chore(deps): update plugin com.google.devtools.ksp to v2.1.10-1.0.30
2025-02-16 18:25:10 +01:00
github-actions
6589a0c7cb Analysis: update lint results to reflect reduced error/warning count
Signed-off-by: github-actions <github-actions@github.com>
2025-02-16 16:14:51 +00:00