Commit e31ff44e by pye52

增加一个容错机制,避免极端情况(暂无法设计该种场景)会堵塞所有命令执行

parent 8ea35633
...@@ -293,6 +293,7 @@ public class MainActivity extends AppCompatActivity implements View.OnClickListe ...@@ -293,6 +293,7 @@ public class MainActivity extends AppCompatActivity implements View.OnClickListe
public void onChanged(WorkInfo workInfo) { public void onChanged(WorkInfo workInfo) {
if (workInfo == null) { if (workInfo == null) {
settingLayout.animate().setDuration(50).alpha(0f); settingLayout.animate().setDuration(50).alpha(0f);
reset();
return; return;
} }
LogUtils.d(TAG, "\n任务: " + (runningCommand != null ? runningCommand.toString() : "null") + LogUtils.d(TAG, "\n任务: " + (runningCommand != null ? runningCommand.toString() : "null") +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment