use of com.fsck.k9.preferences.StorageEditor in project k-9 by k9mail.
the class MailService method saveLastCheckEnd.
public static void saveLastCheckEnd(Context context) {
long lastCheckEnd = System.currentTimeMillis();
Timber.i("Saving lastCheckEnd = %tc", lastCheckEnd);
Preferences prefs = Preferences.getPreferences(context);
Storage storage = prefs.getStorage();
StorageEditor editor = storage.edit();
editor.putLong(LAST_CHECK_END, lastCheckEnd);
editor.commit();
}
Aggregations