Back to project page wifi-auto-forget.
The source code is released under:
GNU General Public License
If you think the Android project wifi-auto-forget listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.cebesius.wifiautoforget.gateway; /* w ww. j av a2s . com*/ import android.content.SharedPreferences; import static com.cebesius.wifiautoforget.gateway.SharedPreferenceKeys.*; /** * Storage wrapper for user preferences */ public class UserPreferenceStorage { private final SharedPreferences sharedPreferences; public UserPreferenceStorage(SharedPreferences sharedPreferences) { this.sharedPreferences = sharedPreferences; } public boolean hasUserCompletedOnboarding() { return sharedPreferences.getBoolean(USER_PREFERENCE_USER_COMPLETED_ONBOARDING, false); } public void setUserCompletedOnboarding(boolean userCompletedOnboarding) { sharedPreferences.edit().putBoolean(USER_PREFERENCE_USER_COMPLETED_ONBOARDING, userCompletedOnboarding).apply(); } }