リファクタリング

This commit is contained in:
ろむねこ 2024-01-19 15:15:46 +09:00
parent 725d541316
commit 244b2fb123
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -1,6 +1,7 @@
package one.nem.lacerta; package one.nem.lacerta;
import android.app.Application; import android.app.Application;
import android.util.Log;
import com.google.android.material.color.DynamicColors; import com.google.android.material.color.DynamicColors;
@ -12,8 +13,12 @@ public class LacertaApplication extends Application {
public void onCreate() { public void onCreate() {
super.onCreate(); super.onCreate();
// DynamicColorを有効化 if (DynamicColors.isDynamicColorAvailable()) {
Log.d("DynamicColors", "DynamicColors is available. Applying to activities...");
DynamicColors.applyToActivitiesIfAvailable(this); DynamicColors.applyToActivitiesIfAvailable(this);
} else {
Log.d("DynamicColors", "DynamicColors is not available.");
}
} }