From fc0dce0a5cd21c7ce2ef3b1182ccdd08e973dd03 Mon Sep 17 00:00:00 2001 From: Ishan09811 <156402647+Ishan09811@users.noreply.github.com> Date: Wed, 7 Feb 2024 14:36:32 +0530 Subject: [PATCH] dynamic color test --- .../com/panda3ds/pandroid/app/PandroidApplication.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/PandroidApplication.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/PandroidApplication.java index b0cdc935f..1b627375f 100644 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/PandroidApplication.java +++ b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/PandroidApplication.java @@ -12,6 +12,8 @@ import com.panda3ds.pandroid.data.config.GlobalConfig; import com.panda3ds.pandroid.input.InputMap; import com.panda3ds.pandroid.utils.GameUtils; +import com.google.android.material.color.DynamicColors; +import com.google.android.material.color.DynamicColorsOptions; public class PandroidApplication extends Application { @@ -27,6 +29,12 @@ public void onCreate() { InputMap.initialize(); AlberDriver.Setup(); + DynamicColorsOptions dynamicColorsOptions = new DynamicColorsOptions.Builder() + .build(); + + DynamicColors.applyToActivitiesIfAvailable(this, dynamicColorsOptions); + + if (GlobalConfig.get(GlobalConfig.KEY_LOGGER_SERVICE)) { startService(new Intent(this, LoggerService.class)); }