- Change Logo And aligned the logo with LobeHub SVG for better visual consistency.
- Adjusted the input field style to match the LobeChat design guidelines.
- Ensured proper padding, margins, and constraints for responsiveness across different screen sizes.
- Introduced a boolean flag `isLobeChatVerified` to ensure LobeChat validation is executed only once for the initial page load.
- Modified `onPageFinished` in `WebViewClient` to check if the header contains "lobechat" text.
- Added logic to redirect the user back to `MainActivity` if the LobeChat validation fails.
- Prevent further validation checks on subsequent page loads once verified.
- This update ensures that unnecessary validation does not disrupt user activities, especially during interactions with third-party services like login.
- Replaced deprecated onBackPressed() method with OnBackPressedDispatcher for better handling of back navigation in WebView.
- Updated WebViewActivity to inject JavaScript to prevent PWA installation prompts.
- Improved file chooser functionality with ActivityResultLauncher.
- Enhanced user experience with Snackbar for error messages.
- Change Logo And aligned the logo with LobeHub SVG for better visual consistency.
- Adjusted the input field style to match the LobeChat design guidelines.
- Ensured proper padding, margins, and constraints for responsiveness across different screen sizes.
- Introduced a boolean flag `isLobeChatVerified` to ensure LobeChat validation is executed only once for the initial page load.
- Modified `onPageFinished` in `WebViewClient` to check if the header contains "lobechat" text.
- Added logic to redirect the user back to `MainActivity` if the LobeChat validation fails.
- Prevent further validation checks on subsequent page loads once verified.
- This update ensures that unnecessary validation does not disrupt user activities, especially during interactions with third-party services like login.
- Replaced deprecated onBackPressed() method with OnBackPressedDispatcher for better handling of back navigation in WebView.
- Updated WebViewActivity to inject JavaScript to prevent PWA installation prompts.
- Improved file chooser functionality with ActivityResultLauncher.
- Enhanced user experience with Snackbar for error messages.
- 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
- 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.