Commit graph

10 commits

Author SHA1 Message Date
moreoronce
e0bd5602ab feat: Add URL validation and prompt feature
- Implemented regular expression validation for the input URL in WebViewActivity.
- Display a prompt saying "Please enter a valid website address" if the URL format is incorrect.
- Maintained existing functionality to ensure that only valid URLs can be loaded.
- Split the WebView functionality from MainActivity into a separate page
2024-10-05 19:57:47 +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
a2c84cc7f4 update 2024-10-05 16:39:59 +08:00
moreoronce
f54f9eed62 update 2024-10-05 16:30:20 +08:00
moreoronce
bbc565af33 fix Storage Permission Denied 2024-10-05 16:23:44 +08:00
moreoronce
a3169eb2f9 remove audio and video permission requests 2024-10-05 16:08:00 +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
51dd4fccbb delete unnecessary import 2024-10-05 12:47:44 +08:00
moreoronce
1e3175db83 init 2024-10-05 12:35:47 +08:00