mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
初回起動フラグ追加
This commit is contained in:
parent
40a0d08a1f
commit
4cfc87a40b
|
@ -50,4 +50,14 @@ public class SharedPrefUtilsImpl implements SharedPrefUtils{
|
||||||
public void setFeatureSwitchOverride(FeatureSwitchOverride featureSwitchOverride, boolean value) {
|
public void setFeatureSwitchOverride(FeatureSwitchOverride featureSwitchOverride, boolean value) {
|
||||||
getEditor().putBoolean(featureSwitchOverride.getKey(), value).apply();
|
getEditor().putBoolean(featureSwitchOverride.getKey(), value).apply();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean getIsFirstLaunch() {
|
||||||
|
return getSharedPreferences().getBoolean("isFirstLaunch", true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setIsFirstLaunch(boolean value) {
|
||||||
|
getEditor().putBoolean("isFirstLaunch", value).apply();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,4 +19,8 @@ public interface SharedPrefUtils {
|
||||||
boolean getFeatureSwitchOverride(FeatureSwitchOverride featureSwitchOverride);
|
boolean getFeatureSwitchOverride(FeatureSwitchOverride featureSwitchOverride);
|
||||||
|
|
||||||
void setFeatureSwitchOverride(FeatureSwitchOverride featureSwitchOverride, boolean value);
|
void setFeatureSwitchOverride(FeatureSwitchOverride featureSwitchOverride, boolean value);
|
||||||
|
|
||||||
|
boolean getIsFirstLaunch();
|
||||||
|
|
||||||
|
void setIsFirstLaunch(boolean value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user