Add friendlier error if trying to use Android < 6.0 device. Closes #1060

This commit is contained in:
baldurk
2018-07-31 14:37:38 +01:00
parent 5293a2c991
commit df1a494fa7
5 changed files with 46 additions and 0 deletions
+11
View File
@@ -1776,6 +1776,17 @@ void MainWindow::switchContext()
// see if the server is up
host->CheckStatus();
if(host->IsADB() && !RENDERDOC_IsAndroidSupported(host->hostname.c_str()))
{
GUIInvoke::call(this, [this]() {
statusText->setText(tr("Device unsupported, Android 6.0 is required."));
contextChooser->setIcon(Icons::disconnect());
contextChooser->setText(tr("Replay Context: Local"));
contextChooser->setEnabled(true);
});
return;
}
if(!host->serverRunning && !host->runCommand.isEmpty())
{
GUIInvoke::call(this, [this]() {