Skip to content

Optimizations#77

Merged
SlaVcE14 merged 7 commits intodevfrom
optimizations
Dec 17, 2025
Merged

Optimizations#77
SlaVcE14 merged 7 commits intodevfrom
optimizations

Conversation

@SlaVcE14
Copy link
Owner

No description provided.

Replaced indexOf-based loops with index iteration to improve performance and avoid potential issues with duplicate elements. Optimized value parsing in getJsonPrimitive by using try-catch blocks. These changes enhance code clarity, efficiency, and robustness.
Moved the JSON apply changes logic in MainActivity to a background thread for better UI responsiveness and added a loading indicator. Updated app version to 1.8.4 and added a new string resource for the loading message.
Introduced the isApplyingChanges boolean to track when changes are being applied, preventing the toolbar from showing during this process. This helps avoid UI inconsistencies while background operations are in progress.
Refactored RawJsonView to use precompiled regex patterns for more efficient and accurate JSON syntax highlighting. Updated AndroidRawJsonView to ensure UI updates and loading state changes are posted to the main thread, improving thread safety and UI responsiveness.
Introduces a public isLoading flag in MainActivity to better track and control loading state. Updates logic to use this flag for progress view visibility and loading completion, ensuring UI elements like the toolbar are hidden appropriately during loading operations.
Refactored MainActivity to centralize unsaved changes dialog logic and made unsavedChanges public. Updated AndroidFileManager and MainActivity to prompt users to save or discard unsaved changes before importing files or performing actions that may overwrite data. Added a new string resource for 'saving file in progress' message.
Updated the app versionName to 1.8.4.1 and versionCode to 57 in build.gradle.
@SlaVcE14 SlaVcE14 merged commit a5f6f00 into dev Dec 17, 2025
3 checks passed
@SlaVcE14 SlaVcE14 added this to the 1.9 milestone Dec 21, 2025
@SlaVcE14 SlaVcE14 deleted the optimizations branch January 16, 2026 00:46
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.

1 participant