Goto terminal bug fixed.

This commit is contained in:
dxl
2020-07-03 17:46:26 +08:00
parent b900e18d92
commit 3d885874a2
@@ -77,9 +77,12 @@ public class Proxmark3NewTerminalInitActivity extends BaseActivity {
Commons.setAutoGoToTerminal(isChecked);
}
});
box.setChecked(Commons.getAutoGoToTerminal());
// Must have init pm3 client and check auto go!
if (Commons.getAutoGoToTerminal() && Commons.isPM3ClientDecompressed()) {
// Must have init pm3 client and check auto go and have the terminal type selected!
if (Commons.getAutoGoToTerminal()
&& Commons.isPM3ClientDecompressed()
&& Commons.getTerminalType() != -1) {
go();
}
}