/** Removes any saved {@link FirefoxAccountSession}. */
@AnyThread
void deleteStoredSession() {
// Alternatively, we could call `sharedPrefs.edit().clear()`, but that's fragile, e.g. if we
// started to store other metadata in here we wouldn't want to clear on account removal.
final SharedPreferences.Editor editor = sharedPrefs.edit();
for (final String key : KEYS_TO_CLEAR_ON_ACCOUNT_REMOVAL) {
editor.remove(key);
}
editor.apply();
}
FirefoxAccountSessionSharedPrefsStore.java 文件源码
java
阅读 45
收藏 0
点赞 0
评论 0
项目:FirefoxData-android
作者:
评论列表
文章目录