Commit graph

9492 commits

Author SHA1 Message Date
Marcel Hibbe
52dc82703e
avoid error when clicking on federated user avatar
without this, there would be http 404 error (nothing was shown to user):

2024-04-11 15:34:30.612 18641-18641 ProfileBottomSheet      com.nextcloud.talk2                  E  Failed to get hover card for user user@yourfereatedserver.dev
                                                                                                    retrofit2.adapter.rxjava2.HttpException: HTTP 404
                                                                                                    	at retrofit2.adapter.rxjava2.BodyObservable$BodyObserver.onNext(BodyObservable.java:57)
                                                                                                    	at retrofit2.adapter.rxjava2.BodyObservable$BodyObserver.onNext(BodyObservable.java:38)
                                                                                                    	at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:48)
                                                                                                    	at io.reactivex.Observable.subscribe(Observable.java:12284)
                                                                                                    	at retrofit2.adapter.rxjava2.BodyObservable.subscribeActual(BodyObservable.java:35)
                                                                                                    	at io.reactivex.Observable.subscribe(Observable.java:12284)
                                                                                                    	at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
                                                                                                    	at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:608)
                                                                                                    	at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
                                                                                                    	at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
                                                                                                    	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
                                                                                                    	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307)
                                                                                                    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
                                                                                                    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
                                                                                                    	at java.lang.Thread.run(Thread.java:1012)

With this fix, nothing happens when clicking on a federated user avatar, just like in web and iOS.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-04-15 14:31:53 +02:00
Marcel Hibbe
69e8c91431
avoid error when clicking on federated user mention chip
without this, there would be the common error message shown because of a http 404 error.

With this fix, nothing happens when clicking on a federated user mention chip, just like in web and iOS.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-04-15 14:31:53 +02:00
Nextcloud bot
7979af0d38
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-04-14 02:44:56 +00:00
Andy Scherzinger
9d7231a0d4
Merge pull request #3831 from nextcloud/renovate/gradle-gradle-build-action-3.x
Update gradle/gradle-build-action action to v3.3.0
2024-04-13 08:19:29 +02:00
Andy Scherzinger
45afa9fd3f
Merge pull request #3833 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2024-04-13 08:17:44 +02:00
nextcloud-android-bot
1130f2c0fa 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <android@nextcloud.com>
2024-04-13 02:11:27 +00:00
renovate[bot]
2584dbc052
Update gradle/gradle-build-action action to v3.3.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-12 22:37:54 +00:00
Sowjanya Kota
d8e6a4a135
Merge pull request #3822 from nextcloud/bugfix/noid/fixCanModerate
Bugfix/noid/fix can moderate
2024-04-12 14:54:19 +02:00
Sowjanya Kota
d7d3ec2ed6
Merge pull request #3825 from nextcloud/bugfix/noid/hideOpenConversationsInAddingParticipantsView
hide button for open conversations when adding participants
2024-04-12 14:37:15 +02:00
Andy Scherzinger
afc2a3e8e2
Merge pull request #3826 from nextcloud/renovate/com.github.spotbugs.snom-spotbugs-gradle-plugin-6.x
Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.0.12
2024-04-12 07:25:50 +02:00
renovate[bot]
0383c416cb
Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.0.12
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-12 03:34:05 +00:00
Marcel Hibbe
e5e859feeb
hide button for open conversations when adding participants
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-04-11 17:17:40 +02:00
Andy Scherzinger
9607066020
Merge pull request #3817 from nextcloud/renovate/media3_version
Update media3_version to v1.3.1
2024-04-11 16:45:47 +02:00
renovate[bot]
f8d89406eb Update media3_version to v1.3.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-11 16:17:02 +02:00
Andy Scherzinger
5c4ba24ccd
Merge pull request #3819 from nextcloud/renovate/com.android.tools.build-gradle-8.x
Update dependency com.android.tools.build:gradle to v8.3.2
2024-04-11 16:16:33 +02:00
Andy Scherzinger
9d63b2995e
Add checksums
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-04-11 15:32:29 +02:00
Marcel Hibbe
d5ff59fcd0
remove unused method
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-04-11 13:53:39 +02:00
Marcel Hibbe
d93dd0f3c1
fix logic for canModerate
bug was introduced with commit 754b8250

As a result, for example the delete conversation option was not shown.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-04-11 13:51:15 +02:00
Andy Scherzinger
533a30504c
Bump 8.3.2
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-04-11 11:56:46 +02:00
renovate[bot]
757dc4693e
Update dependency com.android.tools.build:gradle to v8.3.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-11 11:56:45 +02:00
Andy Scherzinger
0062f22a57
Merge pull request #3821 from nextcloud/renovate/com.github.spotbugs.snom-spotbugs-gradle-plugin-6.x
Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.0.11
2024-04-11 09:43:18 +02:00
Andy Scherzinger
11392dd2fd
Merge pull request #3818 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2024-04-10 23:44:30 +02:00
renovate[bot]
854b2bad0c
Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.0.11
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-10 14:13:25 +00:00
Nextcloud bot
0a24fafad7
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-04-10 02:48:29 +00:00
nextcloud-android-bot
9c92f14cfd 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <android@nextcloud.com>
2024-04-10 02:19:55 +00:00
Andy Scherzinger
70d3e955f5
Merge pull request #3814 from nextcloud/renovate/com.github.spotbugs.snom-spotbugs-gradle-plugin-6.x
Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.0.10
2024-04-09 15:48:42 +02:00
renovate[bot]
fe81712d4a Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.0.10
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-09 07:26:58 +02:00
Andy Scherzinger
71a12cd3cc
Merge pull request #3813 from nextcloud/renovate/gradle-gradle-build-action-3.x
Update gradle/gradle-build-action action to v3.2.1
2024-04-09 07:25:51 +02:00
Nextcloud bot
2e5f10b1f2
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-04-09 02:43:44 +00:00
renovate[bot]
820ae18ca9
Update gradle/gradle-build-action action to v3.2.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-08 23:30:33 +00:00
Nextcloud bot
5282ecabfb
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-04-08 02:44:33 +00:00
Nextcloud bot
ccccaae4ad
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-04-07 02:44:43 +00:00
Andy Scherzinger
35420af121
Merge pull request #3810 from nextcloud/renovate/github-codeql-action-3.x
Update github/codeql-action action to v3.24.10
2024-04-05 19:42:27 +02:00
renovate[bot]
5a6e6f8058
Update github/codeql-action action to v3.24.10
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-05 15:55:16 +00:00
Marcel Hibbe
9ff8e64b38
manually bump to 19.1.0 Alpha 02
still because of https://github.com/nextcloud/talk-android/pull/3733

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-04-05 17:54:01 +02:00
Marcel Hibbe
e0837af157
Merge pull request #3808 from nextcloud/bugfix/noid/fixesForPolls
Bugfix/noid/fixes for polls
2024-04-05 15:52:12 +02:00
Marcel Hibbe
3cfc4188f0
fix to load fallback poll avatar for other actorTypes (deleted users...)
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-04-05 15:48:13 +02:00
Marcel Hibbe
89d004b32d
fix margins for poll checkboxes
checkbox was cut off to the left. probably some material design update changed this. Now there is no need to modify the margin anymore.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-04-05 15:33:31 +02:00
Marcel Hibbe
eaa0743027
fix to always show polls dialog.
Sometimes the polls dialog seemed to not load the content.
This was caused by the showLoadingScreen logic using binding.root.post which overwrote the content depending on if the showResultsScreen or showVoteScreen already set the content. So it was a race conditions that sometimes it worked and sometimes not.
Additionally, calculating the height failed in showLoadingScreen, so in the end there was only the headline visible and even not loading spinner. This is now replaced by a fixed height.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-04-05 15:33:30 +02:00
Marcel Hibbe
cbc1eed336
Merge pull request #3806 from nextcloud/feature/noid/showFederatedAvatarsForPolls
show federated avatars for polls
2024-04-05 14:29:48 +02:00
Marcel Hibbe
0bdbc8a538
use EnumActorTypeConverter for poll models
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-04-05 13:25:32 +02:00
Marcel Hibbe
091fddc2c0
show federated avatars for polls
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-04-05 12:43:37 +02:00
Sowjanya Kota
e57f08f2d5
Merge pull request #3803 from nextcloud/bugfix/noid/fixNpeForConversationCreation
avoid NPE when context is not known when creating conversation
2024-04-05 10:15:26 +02:00
Andy Scherzinger
af43bab814
Merge pull request #3804 from nextcloud/renovate/gradle-gradle-build-action-3.x
Update gradle/gradle-build-action action to v3.2.0
2024-04-05 07:16:30 +02:00
Nextcloud bot
4c6ba0634d
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-04-05 02:44:39 +00:00
renovate[bot]
f9872bc48d
Update gradle/gradle-build-action action to v3.2.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-04 23:12:04 +00:00
Marcel Hibbe
1d62b9f7f9
avoid NPE when context is not known when creating conversation
NPE without this fix:

Exception java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
  at android.content.ComponentName.<init> (ComponentName.java:132)
  at android.content.Intent.<init> (Intent.java:8269)
  at com.nextcloud.talk.conversation.CreateConversationDialogFragment.initiateConversation (CreateConversationDialogFragment.kt:276)
  at com.nextcloud.talk.conversation.CreateConversationDialogFragment.access$initiateConversation (CreateConversationDialogFragment.kt:63)
  at com.nextcloud.talk.conversation.CreateConversationDialogFragment$addParticipants$1.invoke (CreateConversationDialogFragment.kt:257)
  at com.nextcloud.talk.conversation.CreateConversationDialogFragment$addParticipants$1.invoke (CreateConversationDialogFragment.kt:248)
  at com.nextcloud.talk.conversation.CreateConversationDialogFragment$sam$androidx_lifecycle_Observer$0.onChanged
  at androidx.lifecycle.LiveData.considerNotify (LiveData.java:133)
  at androidx.lifecycle.LiveData.dispatchingValue (LiveData.java:151)
  at androidx.lifecycle.LiveData.setValue (LiveData.java:309)
  at androidx.lifecycle.MutableLiveData.setValue (MutableLiveData.java:50)
  at androidx.lifecycle.LiveData$1.run (LiveData.java:93)
  at android.os.Handler.handleCallback (Handler.java:958)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:230)
  at android.os.Looper.loop (Looper.java:319)
  at android.app.ActivityThread.main (ActivityThread.java:8893)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:608)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1103)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-04-04 17:12:21 +02:00
Marcel Hibbe
a17d5132d0
Merge pull request #3801 from nextcloud/bugfix/noid/fixNpeForMissingServerVersion
avoid NPE when serverVersion is not known
2024-04-04 17:10:16 +02:00
Marcel Hibbe
3d9c1d2ca9
avoid NPE when serverVersion is not known
NPE without this fix:

Exception java.lang.RuntimeException:
  at android.app.ActivityThread.performResumeActivity (ActivityThread.java:4975)
  at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:5008)
  at android.app.servertransaction.ResumeActivityItem.execute (ResumeActivityItem.java:54)
  at android.app.servertransaction.ActivityTransactionItem.execute (ActivityTransactionItem.java:45)
  at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:176)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:97)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2386)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loopOnce (Looper.java:210)
  at android.os.Looper.loop (Looper.java:299)
  at android.app.ActivityThread.main (ActivityThread.java:8252)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:559)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:954)
Caused by java.lang.NullPointerException:
  at com.nextcloud.talk.conversationlist.ConversationsListActivity.onResume (ConversationsListActivity.kt:287)
  at android.app.Instrumentation.callActivityOnResume (Instrumentation.java:1565)
  at android.app.Activity.performResume (Activity.java:8668)
  at android.app.ActivityThread.performResumeActivity (ActivityThread.java:4965)

 The root cause may be that the CapabilitiesWorker is not finished so the serverVersion was not added to the user.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-04-04 16:09:15 +02:00
Marcel Hibbe
2c8d5f50cc
Merge pull request #3793 from nextcloud/bugfix/3770/translateMoreBooleansInDiagnosisScreen
translate all boolean values in diagnosis screen
2024-04-04 16:07:47 +02:00