|
@@ -138,7 +138,7 @@ import static com.artncore.wallpadapi.SdbAPI.EM_INDEX_LIVING;
|
|
|
|
|
|
public class iMapServer extends Service {
|
|
|
private String TAG = "iMapServer";
|
|
|
-
|
|
|
+
|
|
|
static final int EVENTTIMELIMITE = 2000;
|
|
|
iMapSverSocket SvrSock;
|
|
|
int port = 10000;
|
|
@@ -15823,6 +15823,7 @@ public class iMapServer extends Service {
|
|
|
int MAX_WALLPADCALL_LIVE_CNT = 2;
|
|
|
int nWallPadCallACKCnt = MAX_WALLPADCALL_LIVE_CNT;
|
|
|
public static boolean bWallPadCallLive = false;
|
|
|
+ public static boolean bWallPadCallLive_old = false;
|
|
|
public static boolean m_bWallpadCallScreen = false;
|
|
|
int nWallPadCallPID = 0;
|
|
|
Handler handlerCheckWallPadCallLive = new Handler() {
|
|
@@ -15847,9 +15848,16 @@ public class iMapServer extends Service {
|
|
|
Common.bWallPadCallLive = bWallPadCallLive;
|
|
|
}
|
|
|
|
|
|
- if (bWallPadCallLive != getCallAppRunning()) {
|
|
|
- setCallAppRunning(bWallPadCallLive);
|
|
|
+
|
|
|
+ if (bWallPadCallLive != bWallPadCallLive_old) {
|
|
|
+
|
|
|
+ if (bWallPadCallLive != getCallAppRunning()) {
|
|
|
+
|
|
|
+ setCallAppRunning(bWallPadCallLive);
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
+ bWallPadCallLive_old = bWallPadCallLive;
|
|
|
|
|
|
} catch (RuntimeException re) {
|
|
|
LogUtil.errorLogInfo("", TAG, re);
|