mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2024-11-19 02:29:25 +01:00
Set default gcm heartbeat interval to 5m
This commit is contained in:
parent
214120aa62
commit
6b9fc62bac
@ -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, "");
|
||||
}
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user