mirror of
https://github.com/YTVanced/VancedMicroG
synced 2024-11-28 06:03:00 +00:00
Fix GCM heartbeat interval for roaming connections with manual interval
When using GCM on a roaming connection, the heartbeat interval is set to: `networkRoaming * 6000`. It should instead be `networkRoaming * 60000` because we're converting from a number of minutes (stored in the properties) to a number of milliseconds, like it's done for regular mobile and wifi connections.
This commit is contained in:
parent
7bc61ab97f
commit
f199f902b1
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ public class GcmPrefs implements SharedPreferences.OnSharedPreferenceChangeListe
|
|||
|
||||
public int getHeartbeatMsFor(String pref, boolean rawRoaming) {
|
||||
if (PREF_NETWORK_ROAMING.equals(pref) && (rawRoaming || networkRoaming != 0)) {
|
||||
return networkRoaming * 6000;
|
||||
return networkRoaming * 60000;
|
||||
} else if (PREF_NETWORK_MOBILE.equals(pref)) {
|
||||
if (networkMobile != 0) return networkMobile * 60000;
|
||||
else return learntMobile;
|
||||
|
|
Loading…
Reference in a new issue