From 9e92ca69f0487cdf53a51fbfbf6de3291b7af32c Mon Sep 17 00:00:00 2001 From: kooritea Date: Sat, 19 Sep 2020 01:21:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=8A=A8=E6=80=81=E8=AF=BB?= =?UTF-8?q?=E5=8F=96=E5=BF=83=E8=B7=B3=E9=97=B4=E9=9A=94(gms=E5=8C=85?= =?UTF-8?q?=E4=B8=8B=E6=97=A0=E6=B3=95=E9=80=9A=E8=BF=87XSharedPreferences?= =?UTF-8?q?=E8=AF=BB=E9=85=8D=E7=BD=AE=EF=BC=8C=E4=BB=A5=E5=90=8E=E5=86=8D?= =?UTF-8?q?=E8=AF=B4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/kooritea/fcmfix/xposed/ReconnectManagerFix.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/src/main/java/com/kooritea/fcmfix/xposed/ReconnectManagerFix.java b/app/src/main/java/com/kooritea/fcmfix/xposed/ReconnectManagerFix.java index c35a3d8..2c0e31a 100644 --- a/app/src/main/java/com/kooritea/fcmfix/xposed/ReconnectManagerFix.java +++ b/app/src/main/java/com/kooritea/fcmfix/xposed/ReconnectManagerFix.java @@ -31,14 +31,7 @@ protected void beforeHookedMethod(final MethodHookParam param) throws Throwable // 修改心跳间隔 Intent intent = (Intent) XposedHelpers.getObjectField(param.thisObject,"e"); if("com.google.android.gms.gcm.HEARTBEAT_ALARM".equals(intent.getAction())){ - String heartbeatIntervalString = getXSharedPreferences().getString("heartbeatInterval",""); - if(heartbeatIntervalString.equals("")){ - heartbeatIntervalString = "117000"; - } - long heartbeatInterval = new Long(heartbeatIntervalString).longValue(); - if(heartbeatInterval>5000L){ - param.args[0] = heartbeatInterval; - } + param.args[0] = 117000L; } } @Override