diff --git a/app/build.gradle b/app/build.gradle index f2c3a7ee..45941a49 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -99,7 +99,7 @@ dependencies { implementation 'androidx.appcompat:appcompat:1.6.1' - implementation 'com.google.android.material:material:1.8.0' + implementation 'com.google.android.material:material:1.9.0-beta01' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' diff --git a/app/src/main/java/app/fedilab/android/mastodon/activities/BaseActivity.java b/app/src/main/java/app/fedilab/android/mastodon/activities/BaseActivity.java index b36be9d5..7b226196 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/activities/BaseActivity.java +++ b/app/src/main/java/app/fedilab/android/mastodon/activities/BaseActivity.java @@ -143,8 +143,8 @@ public class BaseActivity extends AppCompatActivity { } } super.onCreate(savedInstanceState); - ThemeHelper.applyThemeColor(this); + ThemeHelper.applyThemeColor(this); if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.N) { ThemeHelper.adjustFontScale(this, getResources().getConfiguration()); } diff --git a/app/src/main/java/app/fedilab/android/mastodon/helper/ThemeHelper.java b/app/src/main/java/app/fedilab/android/mastodon/helper/ThemeHelper.java index 334d8309..be9ebd97 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/helper/ThemeHelper.java +++ b/app/src/main/java/app/fedilab/android/mastodon/helper/ThemeHelper.java @@ -303,6 +303,7 @@ public class ThemeHelper { } DynamicColorsOptions.Builder builder = new DynamicColorsOptions.Builder(); builder.setContentBasedSource(bmp); + builder.setThemeOverlay(R.style.ThemeOverlay_Material3_DynamicColors_DayNight); DynamicColorsOptions dynamicColorsOptions = builder.build(); DynamicColors.applyToActivityIfAvailable(activity, dynamicColorsOptions); } else if (dynamicColor) {