mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 01:16:31 +00:00
Add friendlier error if trying to use Android < 6.0 device. Closes #1060
This commit is contained in:
@@ -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]() {
|
||||
|
||||
Reference in New Issue
Block a user