|
@ -58,7 +58,7 @@ public class GateUnavailableDialog { |
|
|
// 倒计时相关(离场场景) |
|
|
// 倒计时相关(离场场景) |
|
|
private Handler countdownHandler; |
|
|
private Handler countdownHandler; |
|
|
private Runnable countdownRunnable; |
|
|
private Runnable countdownRunnable; |
|
|
private int countdownSeconds = 5; |
|
|
|
|
|
|
|
|
private int countdownSeconds = 6; |
|
|
|
|
|
|
|
|
// 弹窗类型标识 |
|
|
// 弹窗类型标识 |
|
|
private boolean isPeopleCountError = false; |
|
|
private boolean isPeopleCountError = false; |
|
@ -592,13 +592,13 @@ public class GateUnavailableDialog { |
|
|
* 启动离场场景的倒计时自动关闭(5秒) |
|
|
* 启动离场场景的倒计时自动关闭(5秒) |
|
|
*/ |
|
|
*/ |
|
|
private void startLeaveSceneCountdown() { |
|
|
private void startLeaveSceneCountdown() { |
|
|
LogManager.logInfo(TAG, "启动离场场景5秒倒计时"); |
|
|
|
|
|
|
|
|
LogManager.logInfo(TAG, "启动离场场景6秒倒计时"); |
|
|
|
|
|
|
|
|
// 显示倒计时文本 |
|
|
// 显示倒计时文本 |
|
|
tvCountdown.setVisibility(View.VISIBLE); |
|
|
tvCountdown.setVisibility(View.VISIBLE); |
|
|
|
|
|
|
|
|
// 重置倒计时 |
|
|
// 重置倒计时 |
|
|
countdownSeconds = 5; |
|
|
|
|
|
|
|
|
countdownSeconds = 6; |
|
|
|
|
|
|
|
|
// 更新倒计时显示 |
|
|
// 更新倒计时显示 |
|
|
updateCountdownDisplay(); |
|
|
updateCountdownDisplay(); |
|
@ -615,7 +615,7 @@ public class GateUnavailableDialog { |
|
|
countdownHandler.postDelayed(this, 1000); |
|
|
countdownHandler.postDelayed(this, 1000); |
|
|
} else { |
|
|
} else { |
|
|
// 倒计时结束,自动关闭弹窗 |
|
|
// 倒计时结束,自动关闭弹窗 |
|
|
LogManager.logInfo(TAG, "离场场景5秒倒计时结束,自动关闭弹窗"); |
|
|
|
|
|
|
|
|
LogManager.logInfo(TAG, "离场场景6秒倒计时结束,自动关闭弹窗"); |
|
|
closeDialogAndStopMonitoring(); |
|
|
closeDialogAndStopMonitoring(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -630,7 +630,7 @@ public class GateUnavailableDialog { |
|
|
*/ |
|
|
*/ |
|
|
private void updateCountdownDisplay() { |
|
|
private void updateCountdownDisplay() { |
|
|
if (tvCountdown != null) { |
|
|
if (tvCountdown != null) { |
|
|
tvCountdown.setText("将在 " + countdownSeconds + " 秒后自动关闭"); |
|
|
|
|
|
|
|
|
tvCountdown.setText("请稍后 " + countdownSeconds + "s"); |
|
|
LogManager.logInfo(TAG, "更新倒计时显示: " + countdownSeconds + "秒"); |
|
|
LogManager.logInfo(TAG, "更新倒计时显示: " + countdownSeconds + "秒"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|