アイコン変更, 一部フラグ変更

This commit is contained in:
r-ca 2024-01-23 05:35:42 +09:00
parent 696c58921d
commit 64d7a53616
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9
3 changed files with 9 additions and 2 deletions

View File

@ -17,7 +17,7 @@
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher_temp_round"
android:name=".LacertaApplication"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"

View File

@ -6,6 +6,7 @@ import android.util.Log;
import com.google.android.material.color.DynamicColors;
import dagger.hilt.android.HiltAndroidApp;
import one.nem.lacerta.utils.FeatureSwitch;
@HiltAndroidApp
public class LacertaApplication extends Application {
@ -15,7 +16,11 @@ public class LacertaApplication extends Application {
if (DynamicColors.isDynamicColorAvailable()) {
Log.d("DynamicColors", "DynamicColors is available. Applying to activities...");
if (FeatureSwitch.Meta.disableDynamicColor) {
Log.d("DynamicColors", "DynamicColors is disabled by FeatureSwitch.");
} else {
DynamicColors.applyToActivitiesIfAvailable(this);
}
} else {
Log.d("DynamicColors", "DynamicColors is not available.");
}

View File

@ -4,6 +4,8 @@ public class FeatureSwitch {
public static class Meta {
public static boolean canOverrideSwitch = false;
public static boolean disableDynamicColor = false;
}
public static class RecyclerView {