Merged
Conversation
- Changed `allowInsecure` from `var` to `val` to ensure immutability. - Replaced the nullable safe call `settingsStorage?.decodeBool(AppConfig.PREF_ALLOW_INSECURE) ?: false` with `settingsStorage.decodeBool(AppConfig.PREF_ALLOW_INSECURE, false)` for more concise and readable code. - This ensures `allowInsecure` is always initialized with a default value of `false` in a cleaner and more efficient way.
* Remove unnecessary null check from keywordFilter - Replaced `keywordFilter.isNullOrEmpty()` with `keywordFilter.isEmpty()` since `keywordFilter` is guaranteed to never be null. - Simplified the logic by removing the redundant null check, improving code readability. * Remove unnecessary null check from keywordFilter - Replaced `keywordFilter.isNullOrEmpty()` with `keywordFilter.isEmpty()` since `keywordFilter` is guaranteed to never be null. - Simplified the logic by removing the redundant null check, improving code readability.
- Removed the redundant qualifier `V2rayConfig.RoutingBean.RulesBean` in favor of directly using `RulesBean`. - This simplifies the code and improves readability by removing unnecessary fully qualified names. - The change ensures cleaner and more maintainable code without altering functionality.
- Replaced `subscriptionId.isNullOrEmpty()` with `subscriptionId.isEmpty()` since `subscriptionId` is not nullable. - This refactor simplifies the logic and improves code readability by eliminating the redundant null check.
* Update strings.xml update persian strings * Update strings.xml update persian strings * Update strings.xml update persian strings * Update strings.xml update persian strings
* Update build.yml * Delete .github/dependabot.yml
remove parentheses
Refactored the RxJava disposable handling in the V2RayServiceManager to ensure proper disposal when the service stops. This change prevents potential memory leaks by disposing of the disposable only when it's initialized, using a more concise and reliable approach with Kotlin's let function.
…#3768) Enhanced exception handling in the file chooser and restore configuration process by adding detailed logging with Log.e(). Simplified the intent creation in showFileChooser and combined nested try-catch blocks for better readability and error management.
Simplified the attachBaseContext function by removing redundant let block and ensuring null safety with concise null handling. This refactor improves readability and ensures that null cases are handled directly.
Refined the error handling in the logcat function of LogcatActivity by ensuring that the progress bar is hidden in both success and failure cases. Added user-friendly error messages using toast and cleaned up the code by using Kotlin's linkedSetOf for the logcat command list.
…ment (2dust#3771) Enhanced error handling in the importBatchConfig method by adding a try-catch block. Ensured that the progress bar is hidden in both success and failure cases. Replaced nested if statements with a cleaner when clause for better readability.
…3772) Simplified the binding logic in AppViewHolder by improving readability and removing redundant code. Consolidated logic for setting the app name and handling system apps. This refactor improves the maintainability of the PerAppProxyAdapter class.
…ust#3773) Refactored the saveServer method in RoutingEditActivity to improve null-safety and readability by using apply and takeIf. This ensures cleaner and more concise code while processing user inputs like domain, ip, protocol, and network.
Refactored the import_rulesets_from_clipboard method in RoutingSettingActivity. Improved error handling by isolating the clipboard fetching inside a try-catch block and ensuring the routing ruleset reset logic is handled more cleanly.
Optimized the refreshData method by clearing the existing rulesets list and adding the new items to avoid unnecessary reallocation and improve memory management.
…dust#3776) Streamlined the permission request process using RxPermissions and improved error handling for file selection and QR code decoding in ScannerActivity. Enhanced user feedback for decoding failures and file processing errors.
…vity (2dust#3777) Refactored permission request handling in ScScannerActivity to improve readability and simplify the flow. Improved QR code import logic to ensure better handling of the scanned result and enhance user feedback.
…ust#3779) Fixed the comment typo in ServerCustomConfigActivity and improved null safety in the bindingServer function by ensuring proper fallback for raw content. Simplified logic for setting editor content.
…2dust#3780) Refactored the updateMuxConcurrency function by removing redundant null checks and improving code readability. The concurrency value now defaults to 8 if null or invalid input is provided.
- Refactored the onOptionsItemSelected function to use `when` and `let` for cleaner conditional logic. - Simplified the `chooseFile` function with `runCatching` for better error handling. - Extracted repeated code into reusable functions to improve maintainability. - Improved coroutine handling by ensuring file I/O happens on the IO thread.
- Improved the `createQRCode` function by replacing manual loops with Kotlin idioms and using `runCatching` for safer error handling. - Refactored `syncDecodeQRCode` to simplify control flow and avoid redundant null checks. - Enhanced error handling and logging by using `runCatching` and more concise exception handling.
refactor steam visiblity
remove patch
* Update libs.versions.toml * Update gradle-wrapper.properties * Update libs.versions.toml * Update libs.versions.toml
* UpdateSubmodules * Update _Submodules
* Update dependencies * Update dependencies
* copying from 2dust/AndroidLibXrayLite@df181a3 * add missing includes of XTLS/badvpn@dc99ade * update workflow * fixup! update workflow
M3 upstream to M4 base
support wireguard noise support quic fix fragment params auto switch to fakehost for NonTLS much faster "real delay test" add chocolate4u geo add iran lite/medium/heavy routing preset add dual ping fix hy2 empty porthopping fix QRcode import/export in android 5 fix url encoder/decoder in android 5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.