Skip to content

Commit 284de33

Browse files
authored
Merge pull request #214 from jwfing/master
typo: correct typo miss(if null==callback in mixpush-vivo)
2 parents 1886242 + c2894db commit 284de33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static String getRegistrationId(Context context) {
8282
public static void turnOffVIVOPush(final LCCallback<Boolean> callback) {
8383
com.vivo.push.PushClient.getInstance(LeanCloud.getContext()).turnOffPush(new com.vivo.push.IPushActionListener() {
8484
public void onStateChanged(int state) {
85-
if (null == callback) {
85+
if (null != callback) {
8686
LCException exception = null;
8787
if (0 != state) {
8888
exception = new LCException(LCException.UNKNOWN, "VIVO server internal error, state=" + state);
@@ -100,7 +100,7 @@ public void onStateChanged(int state) {
100100
public static void turnOnVIVOPush(final LCCallback<Boolean> callback) {
101101
com.vivo.push.PushClient.getInstance(LeanCloud.getContext()).turnOnPush(new com.vivo.push.IPushActionListener() {
102102
public void onStateChanged(int state) {
103-
if (null == callback) {
103+
if (null != callback) {
104104
LCException exception = null;
105105
if (0 != state) {
106106
exception = new LCException(LCException.UNKNOWN, "VIVO server internal error, state=" + state);

0 commit comments

Comments
 (0)