1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2026-08-22 22:03:10 +00:00

Refactor code with Java best practices, helped by AS

This commit is contained in:
Loic Blot
2015-11-03 23:00:31 +01:00
parent 2576ca7468
commit 9d61d6c732
17 changed files with 365 additions and 371 deletions
@@ -25,14 +25,14 @@ import fr.unix_experience.owncloud_sms.defines.DefaultPrefs;
public class OCSMSSharedPrefs extends SharedPrefs {
public OCSMSSharedPrefs(final Context context) {
public OCSMSSharedPrefs(Context context) {
super(context, R.string.shared_preference_file);
}
public void setLastMessageDate(final Long msgDate) {
final SharedPreferences.Editor editor = _sPrefs.edit();
public void setLastMessageDate(Long msgDate) {
SharedPreferences.Editor editor = _sPrefs.edit();
editor.putLong(_context.getString(R.string.pref_lastmsgdate), msgDate);
editor.commit();
editor.apply();
}
public Long getLastMessageDate() {