Skip to content

Commit df452d9

Browse files
committed
chore
1 parent ee80226 commit df452d9

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

android-sdk/mixpush-hms/src/main/java/cn/leancloud/LCHMSMessageService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
public class LCHMSMessageService extends HmsMessageService {
1717
static final LCLogger LOGGER = LogUtil.getLogger(LCHMSMessageService.class);
1818

19-
static final String MIXPUSH_PRIFILE = "deviceProfile";
19+
static final String MIXPUSH_PROFILE = "deviceProfile";
2020
static final String VENDOR = "HMS";
2121

2222
public LCHMSMessageService() {
@@ -104,7 +104,7 @@ public static void updateAVInstallation(String hwToken) {
104104
if (!hwToken.equals(installation.getString(LCInstallation.REGISTRATION_ID))) {
105105
installation.put(LCInstallation.REGISTRATION_ID, hwToken);
106106
}
107-
String localProfile = installation.getString(MIXPUSH_PRIFILE);
107+
String localProfile = installation.getString(MIXPUSH_PROFILE);
108108
if (null == localProfile) {
109109
localProfile = "";
110110
}

android-sdk/mixpush-honor/src/main/java/cn/leancloud/LCHonorMessageService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
public class LCHonorMessageService extends HonorMessageService {
1414
static final LCLogger LOGGER = LogUtil.getLogger(LCHonorMessageService.class);
1515

16-
static final String MIXPUSH_PRIFILE = "deviceProfile";
16+
static final String PUSH_PROFILE = "deviceProfile";
1717
static final String VENDOR = "honor";
1818

1919
@Override
@@ -48,7 +48,7 @@ public static void updateAVInstallation(String hwToken) {
4848
if (!hwToken.equals(installation.getString(LCInstallation.REGISTRATION_ID))) {
4949
installation.put(LCInstallation.REGISTRATION_ID, hwToken);
5050
}
51-
String localProfile = installation.getString(MIXPUSH_PRIFILE);
51+
String localProfile = installation.getString(PUSH_PROFILE);
5252
if (null == localProfile) {
5353
localProfile = "";
5454
}
@@ -62,7 +62,7 @@ public void done(LCException e) {
6262
if (null != e) {
6363
LOGGER.e("update installation error!", e);
6464
} else {
65-
LOGGER.d("Huawei push registration successful!");
65+
LOGGER.d("Honor push registration successful!");
6666
}
6767
}
6868
}));

android-sdk/mixpush-vivo/src/main/java/cn/leancloud/LCVIVOPushMessageReceiver.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
public abstract class LCVIVOPushMessageReceiver extends com.vivo.push.sdk.OpenClientPushMessageReceiver {
1414
private static final LCLogger LOGGER = LogUtil.getLogger(LCVIVOPushMessageReceiver.class);
15-
private final String VIVO_VERDOR = "vivo";
15+
private final String VIVO_VENDOR = "vivo";
1616

1717
/**
1818
* 通知被点击后的结果返回。
@@ -42,8 +42,8 @@ public void onReceiveRegId(Context var1, final String regId) {
4242
} else {
4343
LCInstallation installation = LCInstallation.getCurrentInstallation();
4444

45-
if (!VIVO_VERDOR.equals(installation.getString(LCInstallation.VENDOR))) {
46-
installation.put(LCInstallation.VENDOR, VIVO_VERDOR);
45+
if (!VIVO_VENDOR.equals(installation.getString(LCInstallation.VENDOR))) {
46+
installation.put(LCInstallation.VENDOR, VIVO_VENDOR);
4747
}
4848
if (!regId.equals(installation.getString(LCInstallation.REGISTRATION_ID))) {
4949
installation.put(LCInstallation.REGISTRATION_ID, regId);

0 commit comments

Comments
 (0)