mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-21 23:43:15 +00:00
アイコン変更, 一部フラグ変更
This commit is contained in:
parent
696c58921d
commit
64d7a53616
|
@ -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"
|
||||
|
|
|
@ -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...");
|
||||
DynamicColors.applyToActivitiesIfAvailable(this);
|
||||
if (FeatureSwitch.Meta.disableDynamicColor) {
|
||||
Log.d("DynamicColors", "DynamicColors is disabled by FeatureSwitch.");
|
||||
} else {
|
||||
DynamicColors.applyToActivitiesIfAvailable(this);
|
||||
}
|
||||
} else {
|
||||
Log.d("DynamicColors", "DynamicColors is not available.");
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user