From 244b2fb123496bc4c9476bb5f56ac4c3b9e0902c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Fri, 19 Jan 2024 15:15:46 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AA=E3=83=95=E3=82=A1=E3=82=AF=E3=82=BF?= =?UTF-8?q?=E3=83=AA=E3=83=B3=E3=82=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/one/nem/lacerta/LacertaApplication.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/one/nem/lacerta/LacertaApplication.java b/app/src/main/java/one/nem/lacerta/LacertaApplication.java index d8103ea2..448349b5 100644 --- a/app/src/main/java/one/nem/lacerta/LacertaApplication.java +++ b/app/src/main/java/one/nem/lacerta/LacertaApplication.java @@ -1,6 +1,7 @@ package one.nem.lacerta; import android.app.Application; +import android.util.Log; import com.google.android.material.color.DynamicColors; @@ -12,8 +13,12 @@ public class LacertaApplication extends Application { public void onCreate() { super.onCreate(); - // DynamicColorを有効化 - DynamicColors.applyToActivitiesIfAvailable(this); + if (DynamicColors.isDynamicColorAvailable()) { + Log.d("DynamicColors", "DynamicColors is available. Applying to activities..."); + DynamicColors.applyToActivitiesIfAvailable(this); + } else { + Log.d("DynamicColors", "DynamicColors is not available."); + } }