mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-02-21 21:43:02 +08:00
fix #80
This commit is contained in:
parent
7791f088b9
commit
b9b77840ab
@ -106,7 +106,7 @@ public class JPushPlugin extends CordovaPlugin {
|
|||||||
public void onPause(boolean multitasking) {
|
public void onPause(boolean multitasking) {
|
||||||
Log.i(TAG, "---------------- onPause");
|
Log.i(TAG, "---------------- onPause");
|
||||||
shouldCacheMsg = true;
|
shouldCacheMsg = true;
|
||||||
if (isStatisticsOpened) {
|
if (isStatisticsOpened && multitasking) {
|
||||||
JPushInterface.onPause(cordovaActivity);
|
JPushInterface.onPause(cordovaActivity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -116,7 +116,7 @@ public class JPushPlugin extends CordovaPlugin {
|
|||||||
Log.i(TAG, "---------------- onResume" + "-"
|
Log.i(TAG, "---------------- onResume" + "-"
|
||||||
+ JPushPlugin.openNotificationAlert + "-"
|
+ JPushPlugin.openNotificationAlert + "-"
|
||||||
+ JPushPlugin.notificationAlert);
|
+ JPushPlugin.notificationAlert);
|
||||||
if (isStatisticsOpened) {
|
if (isStatisticsOpened && multitasking) {
|
||||||
JPushInterface.onResume(cordovaActivity);
|
JPushInterface.onResume(cordovaActivity);
|
||||||
}
|
}
|
||||||
if (JPushPlugin.openNotificationAlert != null) {
|
if (JPushPlugin.openNotificationAlert != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user