ExactCalculator: Apply dynamic colors to activities

Change-Id: I0b86b76b58f4695ddd5f6d5b55e1672346ee3029
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index c328fb3..dcad905 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -20,6 +20,7 @@
     package="com.android.calculator2">
 
     <application
+        android:name=".CalculatorApplication"
         android:allowBackup="false"
         android:appCategory="productivity"
         android:icon="@mipmap/ic_launcher"
diff --git a/src/com/android/calculator2/CalculatorApplication.java b/src/com/android/calculator2/CalculatorApplication.java
new file mode 100644
index 0000000..e7a2109
--- /dev/null
+++ b/src/com/android/calculator2/CalculatorApplication.java
@@ -0,0 +1,18 @@
+/*
+ * SPDX-FileCopyrightText: 2023 The LineageOS Project
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+package com.android.calculator2;
+
+import android.app.Application;
+
+import com.google.android.material.color.DynamicColors;
+
+public class CalculatorApplication extends Application {
+    @Override
+    public void onCreate() {
+        super.onCreate();
+        DynamicColors.applyToActivitiesIfAvailable(this);
+    }
+}