Skip to content

Commit

Permalink
Also check dark mode on page reload
Browse files Browse the repository at this point in the history
  • Loading branch information
cylonid committed Oct 30, 2022
1 parent 14fbed1 commit 6a7079f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ android {
applicationId "com.cylonid.nativealpha"
minSdkVersion 26
targetSdkVersion 32
versionCode 1303
versionCode 1304
versionName "1.3.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,7 @@ public void onLoadResource(WebView view, String url) {

@Override
public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {
runOnUiThread(() -> setDarkModeIfNeeded());
String url = request.getUrl().toString();
WebApp webapp = DataManager.getInstance().getWebApp(webappID);

Expand Down

0 comments on commit 6a7079f

Please sign in to comment.