Java Code Examples for com.gianlu.commonutils.preferences.Prefs#remove()
The following examples show how to use
com.gianlu.commonutils.preferences.Prefs#remove() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RegisteredPyx.java From PretendYoureXyzzyAndroid with GNU General Public License v3.0 | 6 votes |
public final void logout() { request(PyxRequests.logout(), null, new OnSuccess() { @Override public void onDone() { if (pollingThread != null) pollingThread.safeStop(); } @Override public void onException(@NonNull Exception ex) { Log.e(TAG, "Failed logging out.", ex); } }); InstanceHolder.holder().invalidate(); Prefs.remove(PK.LAST_JSESSIONID); }
Example 2
Source File: PrefsJsonStoring.java From CommonUtils with Apache License 2.0 | 5 votes |
@Override public void putJsonArray(@NonNull String key, JSONArray array) { if (array == null) { Prefs.remove(key); return; } String str = array.toString(); str = Base64.encodeToString(str.getBytes(), Base64.NO_WRAP); Prefs.putString(key, str); }
Example 3
Source File: PrefsJsonStoring.java From CommonUtils with Apache License 2.0 | 5 votes |
@Override public void putJsonObject(@NonNull String key, JSONObject obj) { if (obj == null) { Prefs.remove(key); return; } String str = obj.toString(); str = Base64.encodeToString(str.getBytes(), Base64.NO_WRAP); Prefs.putString(key, str); }
Example 4
Source File: TutorialManager.java From CommonUtils with Apache License 2.0 | 4 votes |
public static void restartTutorial() { Prefs.remove(CommonPK.TUTORIAL_DISCOVERIES); }
Example 5
Source File: ProfilesManager.java From Aria2App with GNU General Public License v3.0 | 4 votes |
public void unsetLastProfile() { Prefs.remove(PK.LAST_USED_PROFILE); }