Skip to content

Commit 41b6d87

Browse files
committed
chore: replace HTML error pages with native UI and implement safe-area insets
- Delete static HTML error assets and `error.css`. - Implement native `isError` state and Compose-based loading/error overlays in `MainActivity`. - Update `SecureWebViewClient` to trigger the `isError` state on request failures. - Inject JavaScript in `onPageFinished` to dynamically adjust web content for safe-area insets (top and bottom). - Update `WebApppTheme` to use transparent status and navigation bars with dynamic icon coloring. - Bump version to 1.2 in `build.gradle.kts`. - Refactor `WebViewScreen` and `SecureWebViewClient` to handle the new error state.
1 parent f8364ec commit 41b6d87

File tree

16 files changed

+113
-275
lines changed

16 files changed

+113
-275
lines changed

.idea/deploymentTargetSelector.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/material_theme_project_new.xml

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ android {
5252
targetSdk = 36
5353

5454
versionCode = dateVersionCode
55-
versionName = "1.1 ($dateVersionCode)"
55+
versionName = "1.2 ($dateVersionCode)"
5656

5757
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
5858
vectorDrawables {

app/src/main/assets/css/error.css

Lines changed: 0 additions & 50 deletions
This file was deleted.

app/src/main/assets/http_error/error_400.html

Lines changed: 0 additions & 26 deletions
This file was deleted.

app/src/main/assets/http_error/error_403.html

Lines changed: 0 additions & 26 deletions
This file was deleted.

app/src/main/assets/http_error/error_404.html

Lines changed: 0 additions & 26 deletions
This file was deleted.

app/src/main/assets/http_error/error_500.html

Lines changed: 0 additions & 26 deletions
This file was deleted.

app/src/main/assets/http_error/error_503.html

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)