1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2025-06-27 01:36:27 +00:00

Prepare new preference to manage minimum length senders to allow for sync

This commit is contained in:
Loic Blot 2016-08-28 14:18:59 +02:00
parent ba672a2ab9
commit 58ef25883c
2 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package fr.unix_experience.owncloud_sms.defines;
public class DefaultPrefs {
public final static Integer syncInterval = 15;
public final static Integer minimumCharsForSync = 6;
public final static Boolean pushOnReceive = true;
public final static Boolean syncWifi = true;

View File

@ -70,4 +70,6 @@ public class OCSMSSharedPrefs extends SharedPrefs {
public Integer getSyncBulkLimit() {
return _sPrefs.getInt("sync_bulk_messages", -1);
}
public Integer getMinPhoneNumberCharsToSync() { return _sPrefs.getInt("minimum_sync_chars", DefaultPrefs.minimumCharsForSync); }
}