mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 11:37:37 +00:00
WIP
This commit is contained in:
7 files changed
+18
-31
No files matched your search
@@ -2,8 +2,13 @@ package one.nem.lacerta.utils;
|
||||
|
||||
public class FeatureSwitch {
|
||||
|
||||
public static class Meta {
|
||||
public static boolean canOverrideSwitch = true;
|
||||
}
|
||||
|
||||
public static class FeatureMaster {
|
||||
public static boolean enableSearch = true;
|
||||
public static boolean enableDebugMenu = true;
|
||||
}
|
||||
|
||||
public static class Setting {
|
||||
|
||||
@@ -4,6 +4,8 @@ package one.nem.lacerta.utils.impl;
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
import dagger.hilt.android.qualifiers.ApplicationContext;
|
||||
import one.nem.lacerta.model.pref.FeatureSwitchOverride;
|
||||
import one.nem.lacerta.utils.repository.SharedPrefUtils;
|
||||
@@ -12,6 +14,7 @@ public class SharedPrefUtilsImpl implements SharedPrefUtils{
|
||||
|
||||
private final Context applicationContext;
|
||||
|
||||
@Inject
|
||||
public SharedPrefUtilsImpl(@ApplicationContext Context applicationContext) {
|
||||
this.applicationContext = applicationContext;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user