mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 07:53:15 +00:00
アイコン変更, 一部フラグ変更
This commit is contained in:
parent
696c58921d
commit
64d7a53616
|
@ -17,7 +17,7 @@
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
android:dataExtractionRules="@xml/data_extraction_rules"
|
android:dataExtractionRules="@xml/data_extraction_rules"
|
||||||
android:fullBackupContent="@xml/backup_rules"
|
android:fullBackupContent="@xml/backup_rules"
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher_temp_round"
|
||||||
android:name=".LacertaApplication"
|
android:name=".LacertaApplication"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:roundIcon="@mipmap/ic_launcher_round"
|
android:roundIcon="@mipmap/ic_launcher_round"
|
||||||
|
|
|
@ -6,6 +6,7 @@ import android.util.Log;
|
||||||
import com.google.android.material.color.DynamicColors;
|
import com.google.android.material.color.DynamicColors;
|
||||||
|
|
||||||
import dagger.hilt.android.HiltAndroidApp;
|
import dagger.hilt.android.HiltAndroidApp;
|
||||||
|
import one.nem.lacerta.utils.FeatureSwitch;
|
||||||
|
|
||||||
@HiltAndroidApp
|
@HiltAndroidApp
|
||||||
public class LacertaApplication extends Application {
|
public class LacertaApplication extends Application {
|
||||||
|
@ -15,7 +16,11 @@ public class LacertaApplication extends Application {
|
||||||
|
|
||||||
if (DynamicColors.isDynamicColorAvailable()) {
|
if (DynamicColors.isDynamicColorAvailable()) {
|
||||||
Log.d("DynamicColors", "DynamicColors is available. Applying to activities...");
|
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);
|
DynamicColors.applyToActivitiesIfAvailable(this);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Log.d("DynamicColors", "DynamicColors is not available.");
|
Log.d("DynamicColors", "DynamicColors is not available.");
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,8 @@ public class FeatureSwitch {
|
||||||
|
|
||||||
public static class Meta {
|
public static class Meta {
|
||||||
public static boolean canOverrideSwitch = false;
|
public static boolean canOverrideSwitch = false;
|
||||||
|
|
||||||
|
public static boolean disableDynamicColor = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class RecyclerView {
|
public static class RecyclerView {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user