15438 Commits
Author SHA1 Message Date
Nextcloud bot d7cb10ec60 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-11-07 07:07:50 +00:00
Tobias Kaminsky 5a1b85a13e Merge pull request #6995 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2026-11-06 10:11:12 +01:00
nextcloud-android-bot 651db56045 🔄 synced local '.' with remote 'config/root/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2026-11-06 08:55:21 +00:00
nextcloud-android-bot 5708550549 🔄 synced local 'fastlane/' with remote 'config/fastlane/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2026-11-06 08:55:21 +00:00
nextcloud-android-bot 95755e347d 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2026-11-06 08:55:21 +00:00
Nextcloud bot ed29aaade7 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-11-06 07:25:57 +00:00
Marcel Hibbe 97ce524d2e Merge pull request #6996 from nextcloud/bugfix/6806/savingAnImageFromAConversationCreatesAnEmpty0BFileSaveFileTo
Bugfix/6806/saving an image from a conversation creates an empty0 b file save file to
2026-11-05 22:05:54 +01:00
Marcel Hibbe 8507877b9d Merge pull request #6997 from nextcloud/disableVideoTransmitByProximity
fix(call): disable video transmit and screen when phone is at the ear
2026-11-05 22:05:26 +01:00
Marcel Hibbe a806514932 fix(call): disable video transmit and screen when phone is at the ear
Post proximity sensor events in video calls so the local video is
stopped while the phone is held to the ear and resumed afterwards.
Keep the proximity screen-off wake lock in video calls regardless of
the audio route.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-05 15:43:11 +01:00
Marcel Hibbe 1996c0e772 fix(save): Drop the media scan of the app-private cache file
After saving, the worker asked the media scanner to scan the source file
in the app's private cache instead of the new MediaStore entry. The
scanner cannot index that file, so the call had no effect. The saved
file is already registered through the MediaStore insert.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-05 11:01:29 +01:00
Marcel Hibbe b2f8115406 fix(save): Keep the MediaStore entry pending until the file is written
The MediaStore entry was visible to the gallery and other apps as soon
as it was inserted. If the process was killed while the file was being
copied, the cleanup never ran and an empty or truncated file stayed in
the gallery.

On API 29+ the entry is now inserted with IS_PENDING set and only
published once the copy has finished, so an interrupted save never
becomes visible.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-05 11:01:24 +01:00
Marcel Hibbe 3d423af5e4 fix(save): Report all failures when saving a file to storage
SaveFileToStorageWorker only caught IOException and NullPointerException,
so other failures such as an IllegalArgumentException from inserting the
MediaStore entry ended the save without telling the user. All failures
are now logged and shown with the error toast.

Writing the file moved into its own function. If removing the
incomplete MediaStore entry fails as well, that failure is attached to
the original exception instead of replacing it.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-05 11:01:17 +01:00
Marcel Hibbe b96dbf8acc fix(save): Report failed MediaStore inserts and key saves by fileId
A null result from inserting the MediaStore entry skipped the copy but
still reported a successful save. It now fails the save like any other
write error.

The duplicate-save guard was keyed by file name only, so saving a second
attachment with the same name while the first save was still pending
was silently dropped. The worker tag now includes the fileId.

resolveSharedAttachmentFile with a fileId now falls back to the flat
shared attachments directory when no fileId is given, replacing the
duplicated fallback in DownloadFileToCacheWorker and the save dialog.

Also drop a null check on the always non-null MIME type.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-05 11:01:11 +01:00
Marcel Hibbe 72f46d4f70 fix(mediaviewer): Save images from their per-fileId cache location
Since attachment cache files of the media viewer are nested under a
per-fileId subdirectory, the save dialog still resolved the source file
directly inside the shared attachments directory. The worker then failed
to read the missing file after it had already inserted a MediaStore
entry, leaving an empty 0 B file in the gallery.

Pass the fileId to the save dialog so the correct cache file is used.
The worker now also checks that the source file exists before creating
the MediaStore entry, deletes the entry if writing fails, and reports
the failure to the user instead of failing silently.

Fixes #6806

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-05 10:35:31 +01:00
Nextcloud bot 2eeaf251ab fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-11-05 03:54:45 +00:00
Tobias Kaminsky b1e7060224 Merge pull request #6979 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2026-11-04 13:24:22 +01:00
nextcloud-android-bot 40c742b51d 🔄 synced local '.' with remote 'config/root/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2026-11-04 11:55:11 +00:00
nextcloud-android-bot b3c53a220a 🔄 synced local 'fastlane/' with remote 'config/fastlane/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2026-11-04 11:55:11 +00:00
nextcloud-android-bot 78d808c2f8 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
2026-11-04 11:55:11 +00:00
Tobias Kaminsky 7800e1fab6 Merge pull request #6990 from nextcloud/fastlane2
further Fastlane
2026-11-04 10:19:46 +01:00
tobiasKaminsky a415040e64 further Fastlane
Signed-off-by: tobiasKaminsky <[email protected]>
2026-11-04 10:13:34 +01:00
Marcel Hibbe 1886c26802 Merge pull request #6934 from nextcloud/shareOwnScreen
feat(call): share own screen from the device
2026-11-04 09:24:38 +01:00
Nextcloud bot e091e89bd5 fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <[email protected]>
2026-11-04 04:25:00 +00:00
rapterjet2004 ca58d7e0bc fix(call): harden screen sharing teardown and dialog reuse
Address review findings on the screen sharing changes:

- ScreenCapture: only stop the capturer in release() if it was actually
  started, so a failed startCapture() no longer calls stopCapture() on a
  capturer whose media projection was never set up.
- CallForegroundService: also catch IllegalStateException (e.g.
  ForegroundServiceStartNotAllowedException) when reconfiguring the
  foreground service type, which can be thrown while in background.
- CallActivity: always create a fresh MoreCallActionsDialog from the
  recording indicator, as reusing a dismissed instance leaves its
  lifecycle-scoped observers inactive.
- LocalScreenShareController: only notify a state change in cancelPending()
  when it actually was pending, mirroring stop().

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Julius Linus <[email protected]>
Signed-off-by: rapterjet2004 <[email protected]>
2026-11-03 13:05:42 -06:00
Marcel Hibbe b94635a70d Merge pull request #6844 from ToteMeiSter/fix/read-marker-not-below-own-message
fix(chat): do not send a read marker below the user's own message
2026-11-03 17:07:03 +01:00
Andy Scherzinger 3342da75ad Merge pull request #6989 from nextcloud/improveIntentHandling
Improve intent handling
2026-11-03 16:18:43 +01:00
Marcel Hibbe 5135a16bb2 fix(lint): check for a retry of an upload through Result.retry()
Result.Retry is restricted to the library group of WorkManager, so lint
reported its use in UploadAndShareFilesWorker. The result is now compared
with Result.retry(), which equals every retry, so the access to the picked
file is still kept for a retry and released otherwise.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 14:25:00 +01:00
Marcel Hibbe b399c71959 fix(lint): mark origActivity of a recent task as available before API 29
Lint takes RecentTaskInfo.origActivity for the field of TaskInfo, which was
added in API 29, and reports it as a new API. RecentTaskInfo declares the
field itself since API 1 and only inherits it since API 29, and the bytecode
reads it from RecentTaskInfo, so it exists on every supported version. The
check is suppressed for the getter that reads it.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 14:21:07 +01:00
Marcel Hibbe a3554c8fa3 fix(build): keep the test libraries out of the app
room-testing-android and junit-ktx were dependencies of the app, so it
shipped junit and hamcrest-core 1.3. The android test APK leaves out what
the app already has and is held to its versions, so it lacked
org.hamcrest.Matchers and Espresso's withId() failed with a
NoClassDefFoundError. Both are only used by the android tests and are now
dependencies of those. The changed dependencies need the checksum of
core-common-2.1.0.pom.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 14:08:52 +01:00
Marcel Hibbe 3a8a74eb9d fix(test): read the default account of LoginIT from the conversation list
LoginIT started the app through the launcher intent into an
ActivityScenario<Activity>, which has no defaultAccountProvider, so the
android tests didn't compile. The launcher alias opens the conversation
list, so the scenario is typed with ConversationsListActivity.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 14:08:49 +01:00
Marcel Hibbe 3e661aa2f2 fix(deeplink): ask before joining the call of a voice room opened by a link
A nextcloudtalk:// link to a known conversation opened its chat right away,
and the chat of a voice room joins its call as soon as it has joined the
room. Such a link now opens the voice room through the conversation list,
like a conversation shortcut, which asks whether to join the call, as when
it is opened from the list.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 11:25:31 +01:00
Marcel Hibbe 581f64f238 fix(lock): leave the app when the screen lock of the device is left without unlocking
Without a fingerprint, or after the biometric prompt failed, the lock screen
shows the screen lock of the device. Leaving it with Back returned to the
lock screen, which asked again right away, so the screen lock came back and
the app couldn't be left. It now leaves the app like Back on the lock
screen. Closing the biometric prompt with Back keeps the lock screen instead
of asking for the screen lock of the device, and its callbacks run on the
main thread.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 11:25:31 +01:00
Marcel Hibbe e7736b8780 fix(deeplink): show the splash screen of a link with the app icon
Since Android 13, the system shows the splash screen of a start that isn't
one of the launcher as a plain color, without the icon of the app. The
conversation list keeps it while it routes a link that started the app, so
a link showed a blue screen without the logo. DeepLinkActivity now asks for
the splash screen with the icon.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 11:25:31 +01:00
Marcel Hibbe 95ca9f1b46 fix(upload): keep the access to picked files until their upload is done
The photo picker and the file picker grant the read access to a picked file
only to the chat that picked it, until it is closed or the process is
killed. An upload that waited for the network, e.g. while the app was in
the background, then couldn't read its file and failed with a
SecurityException. The access is now persisted when the file is sent, and
released when its upload ends or is cancelled, unless another upload of
the file still needs it, and for leftovers when the app starts.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 11:25:31 +01:00
Marcel Hibbe 9eb9693ea4 refactor(list): rename pendingDirectShareToken to pendingShortcutToken
It holds the conversation of any shortcut that started the list, the
conversation shortcuts as well as the direct share targets.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 11:25:31 +01:00
Marcel Hibbe c43b624c78 refactor(shortcuts): don't focus the message input for the note to self shortcut
The note to self shortcut opened its chat with the focus in the message
input, which isn't needed. The extra, and the state the conversation list
kept for it while the conversation of a shortcut was pending, are removed.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 11:25:31 +01:00
Marcel Hibbe 961b68be66 refactor(call): tell a share task as AppTasks does
The call recognised the task of a share by the action of its intent, beside
AppTasks, which tells it by its root.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 11:25:31 +01:00
Marcel Hibbe 66f4722c3b fix(chat): replace the chat by the chat of an audio message of another room
Opening the chat of an audio message from the player of a chat put the new
chat on top of the shown one, so chats piled up, each joined to its room. The
chat of another room now replaces the shown one. A thread and the chat of
its room stay, as Back leads from one to the other.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 11:25:30 +01:00
Marcel Hibbe f75f699d68 fix(shortcuts): open the conversation of a shortcut once the sync ends
The conversation of a shortcut that wasn't listed yet opened whenever a sync
added it while the list stayed shown, also minutes later. It now opens at
the latest when the sync of the list ends, reading the stored conversations,
or a snackbar tells that it wasn't found, also on a slow network. A search
started meanwhile drops it, so it doesn't open over what the user does.

The list keeps it in its saved state only when it is recreated, not when it
was left: before Android 9, the state is saved before the list is stopped,
which restored a conversation the user had left.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 11:25:30 +01:00
Marcel Hibbe 50b1e66626 fix(share): keep the copies of shared files out of backups also from Android 12 on
From Android 12 on, cloud backups and device transfers of an app targeting
it ignore the full backup rules and only follow the data extraction rules,
so the copies were backed up.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 11:23:51 +01:00
Marcel Hibbe 43f4a7480a refactor: tell a task relaunched from the recents in one place
The routing of deep links and the list each read the flag of a relaunch from
the recents themselves, which all have to agree on.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 11:23:51 +01:00
Marcel Hibbe de4c67f0cb fix(share): remove copies only for a share of ShareActivity
A list that passed a share on to ShareActivity still removed the copies its
uris named when it finished, which could be those of another share in
progress.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 11:23:51 +01:00
Marcel Hibbe 152573abf4 fix(lock): don't lock again right after unlocking
Leaving the app while the lock screen is shown, e.g. for the screen lock of
the device, set the lock check for its return, which the screen below then
ran after unlocking: with no timeout it locked again right away.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 11:23:51 +01:00
Marcel Hibbe eb67fc7438 fix(list): don't drop a new intent for a switch to the default account
When the default account changed while the list was in the background, the
list switched to it in onRestart, before onNewIntent() delivered e.g. a
shortcut or deep link, which was then lost with the old list. The check is
now armed when the list is stopped and done on resume, and not for a new
intent, which chooses its account itself. A list that switches doesn't load
its data anymore.

It waits while the lock screen covers the list: the list of the default
account would start above it and open a second lock screen.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 11:23:51 +01:00
Marcel Hibbe aa5f124634 fix(shortcuts): don't open the conversation of a shortcut again from the recents
A task a shortcut started keeps its intent, so when its list was gone and
the task was relaunched from the recents, the conversation of the shortcut
was opened again.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 11:22:13 +01:00
Marcel Hibbe a634809450 docs: shorten the comments of the account intent, the shortcut update and shared files
AGENTS.md asks for brief comments matching the surrounding code.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 11:22:13 +01:00
Marcel Hibbe 5f2496a6d0 perf(share): ask WorkManager once for the uploads of the shares to remove
The removal of the copies asked WorkManager for the uploads of each share
on its own, one after another, when the app starts and when a share starts.
It now asks once for all of them.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 11:22:13 +01:00
Marcel Hibbe 0fafa5b971 fix(share): read the authority of a shared file's uri that names the user
getFileFromUri didn't recognise a uri with the user id prefix of the own user
("0@authority") as one of the app's copies and copied it into the cache by
its name, where a file of the same name would have been taken instead, and
its upload got no tag of its share, so its copy could be removed while the
upload still waited. They now drop a prefix of the own user. A uri of
another user, e.g. of the app in another profile, isn't taken for one of the
app's copies.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 11:22:13 +01:00
Marcel Hibbe ab8cc6197b refactor(list): leave onCreate in one place when the list isn't shown
A launcher tap on a task of the app and an intent the list passes on each
returned on their own, which detekt counts as too many returns.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 11:22:13 +01:00
Marcel Hibbe c7a03da44a refactor(list): take the conversation of a shortcut in a function of its own
onResume had become too long for detekt with the direct share of another
account. The comment of the direct share is wrapped at 120 characters.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
2026-11-03 11:22:12 +01:00