Set default gcm heartbeat interval to 5m

This commit is contained in:
Marvin W 2016-08-29 18:00:18 +02:00
parent 214120aa62
commit 6b9fc62bac
No known key found for this signature in database
GPG Key ID: 072E9235DB996F2A
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ public class GcmPrefs implements SharedPreferences.OnSharedPreferenceChangeListe
return INSTANCE;
}
private int heartbeatMs = 60000;
private int heartbeatMs = 300000;
private boolean gcmLogEnabled = true;
private String lastPersistedId = "";
@ -53,7 +53,7 @@ public class GcmPrefs implements SharedPreferences.OnSharedPreferenceChangeListe
}
public void update() {
heartbeatMs = Integer.parseInt(defaultPreferences.getString(PREF_GCM_HEARTBEAT, "60")) * 1000;
heartbeatMs = Integer.parseInt(defaultPreferences.getString(PREF_GCM_HEARTBEAT, "300")) * 1000;
gcmLogEnabled = defaultPreferences.getBoolean(PREF_GCM_LOG, true);
lastPersistedId = defaultPreferences.getString(PREF_LAST_PERSISTENT_ID, "");
}

View File

@ -35,7 +35,7 @@
android:summary="@string/pref_gcm_enable_mcs_summary"
android:title="@string/pref_gcm_enable_mcs_title"/>
<EditTextPreference
android:defaultValue="60"
android:defaultValue="300"
android:dependency="@string/pref_gcm_enable_mcs"
android:key="@string/pref_gcm_heartbeat"
android:summary="@string/pref_gcm_heartbeat_summary"