Commit graph

6 commits

Author SHA1 Message Date
Yawata
3d49ae565d feat: Add support for IP address:port access
Update regex to support IP address format
Improve URL handling logic for IP addresses
Update error message to reflect supported formats
fix: Allow cleartext HTTP traffic

Add android:usesCleartextTraffic="true" to AndroidManifest.xml
Fix err_cleartext_not_permitted error
perf: Optimize regex performance

Precompile regex patterns as constants
Use precompiled URL_PATTERN and IP_PATTERN for matching
Reduce CPU overhead on each button click
2024-12-30 09:13:26 +08:00
moreoronce
b82febf82a Refactor and Optimize Layouts and Resources
- Updated activity_main.xml for better layout alignment and consistent use of Material Design components.
- Added ids to LinearLayouts for easier reference and manipulation.
- Enhanced styles in styles.xml to unify the UI appearance across the app.
- Adjusted themes in themes.xml to incorporate the latest Material Components.
- Revised colors.xml and strings.xml to include new color schemes and text resources.
- Updated backup_rules.xml and various drawable resources for consistency and clarity.
2024-10-07 09:00:14 +08:00
moreoronce
c4f50c2c14 feat: Update storage permission handling for image access
- Implemented request for READ_EXTERNAL_STORAGE permission to allow users to select images.
- Optimized permission request logic to avoid unnecessary prompts if permission has already been granted.
- Added user-friendly dialogs to guide users to app settings when permissions are denied.
- Enhanced error handling and logging for WebView to improve debugging and user experience.
- Loaded last entered URL from SharedPreferences for better usability.
- Updated UI interactions to hide input elements when loading web content.
- Remove unnecessary permission granted.

This update improves the overall user experience by streamlining the permission process and enhancing image selection functionality.
2024-10-05 19:06:53 +08:00
moreoronce
dac1709acd add url input to use user's lobechat mirror 2024-10-05 15:55:43 +08:00
moreoronce
38d2280c93 add url input to use user's lobechat mirror 2024-10-05 14:25:31 +08:00
moreoronce
1e3175db83 init 2024-10-05 12:35:47 +08:00