Skip to content

Conversation

@Kota-Jagadeesh
Copy link
Collaborator

Description

Fixes #5784

What changes did you make and why?

The UploadActivity was previously being destroyed and recreated (restarted) when the user resized the application window, such as when entering or exiting split-screen mode. This caused the app to lose the current upload fragment state and return to the application's home screen.

  • Added smallestScreenSize and screenLayout to the android:configChanges attribute for UploadActivity in AndroidManifest.xml. This instructs the Android system to notify the activity of these configuration changes instead of fully restarting it, thereby preserving the user's progress through the upload flow.

Tests performed

Tested ProdDebug on Redmi note 13 pro 5g with API level 35.

@github-actions
Copy link

✅ Generated APK variants!

@Kota-Jagadeesh Kota-Jagadeesh self-assigned this Nov 22, 2025
Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was finally able to trigger a crash (though with a slightly different stack trace) by following the screencast and making Commons' area tiny.

This change solves that crash.

@nicolas-raoul nicolas-raoul merged commit fc5a6a9 into commons-app:main Nov 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Crash when changing from half-size to fullsize window

2 participants