初回起動フラグ追加

This commit is contained in:
r-ca 2024-01-21 20:32:29 +09:00
parent 40a0d08a1f
commit 4cfc87a40b
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9
2 changed files with 14 additions and 0 deletions

View File

@ -50,4 +50,14 @@ public class SharedPrefUtilsImpl implements SharedPrefUtils{
public void setFeatureSwitchOverride(FeatureSwitchOverride featureSwitchOverride, boolean value) {
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();
}
}

View File

@ -19,4 +19,8 @@ public interface SharedPrefUtils {
boolean getFeatureSwitchOverride(FeatureSwitchOverride featureSwitchOverride);
void setFeatureSwitchOverride(FeatureSwitchOverride featureSwitchOverride, boolean value);
boolean getIsFirstLaunch();
void setIsFirstLaunch(boolean value);
}