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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
A shortcut must have an intent with an action, so the fallback for an
account without an id would have thrown while publishing the share targets
instead of opening the list.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
Without a running task of the app, the conversation list of an ended call
was opened in any other task of the app, also in the task of a share, whose
list then replaced the shared content. And the other tasks were removed with
the share in them. Shares are now left out of both.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
The shared files were removed from the intent of the chat when it was
created, but shown only once its room was loaded, so a chat recreated in
between, e.g. by a rotation, dropped them and left their copies behind.
Whether the shared files and text were taken is now kept in the saved state,
the files once the attachment preview has them. Removing them from the
intent only changed the chat's own copy of it: a chat recreated after its
process was killed gets the intent it was started with, so it offered the
files again, and the shared text was put into the draft again on every
recreation, which replaced the edits of the draft.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
The id of the direct share target stayed in the intent and was read on every
resume of the list, so a conversation that couldn't take the share showed
its error again each time. It is now read once, and also before Android 10,
where ChooserTargetServiceCompat passes it as well.
The system keeps the direct share targets of an account shown before cached,
but the list looked up their conversation among those of the current
account, so the chosen one was ignored. The list now passes such a share on
to its account. The account and token are read with the parser of the
shortcut ids, which also checks the token.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
Any account on the server of the link was taken before the current one, so
a link without a user name opened with the first account on that server,
also when the current account was on it.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
When the screen lock of the device was removed while the lock screen was
shown, it couldn't authenticate, and Back only moves the app to the back, so
the app couldn't be used anymore. And when the app was unlocked on the lock
screen of another task, e.g. of a share, the one left in the task of the app
asked to authenticate again when it was shown. Both now close.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
createSwitchToAccountIntent and createAccountSwitchIntent read the same but
one switches the shown list in place and the other replaces the root list.
The first is now createInPlaceAccountSwitchIntent, which the call and the
chat use too instead of building the same intent by hand.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
The comment of the shortcut update also says now that pinned and cached
shortcuts are updated as well, instead of reading as if they were left out.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
The list rewrites its intent to the internal entry point to keep its
account. A VIEW intent that the list shows, one flagged as relaunched from
the recents, then kept its uri and was routed again, e.g. when the list was
relaunched for another account. Its uri is now removed.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
The list stopped reading the shared items at the first text, so the files
after it were neither sent nor removed, as the share counted as passed on.
It now takes all files and the first text. The text of an earlier share in
the same list isn't taken for a share without one.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
The attachment preview removed the copies of the shared files whenever it was
dismissed without a configuration change, also when the system destroyed the
chat in the background and restored the preview later, which then had no
files. They are now removed only when the shown preview or its chat is closed.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>
The deep link routing and the conversation of a shortcut each collected
their state only while resumed and checked the lock screen themselves.
collectWhileUnlocked does both, for every screen a stream opens.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <[email protected]>