From 5a190047324a327874a4cbf626f131025d0a421b Mon Sep 17 00:00:00 2001 From: John Knox Date: Wed, 22 Jan 2020 07:48:29 -0800 Subject: [PATCH] Only show outdated SDK warning for android devices Summary: This exists to warn people about an incompatibility with old android sdk's, there's no need for the warning on other OS's even if the sdk is old. Reviewed By: mweststrate Differential Revision: D19499587 fbshipit-source-id: 5468fffcc0265bb122cf149f49b9af86ddd3c84e --- src/server.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.tsx b/src/server.tsx index c5d02b1a3..28bd9779f 100644 --- a/src/server.tsx +++ b/src/server.tsx @@ -49,7 +49,7 @@ function appNameWithUpdateHint(query: ClientQuery): string { // section because it refers to the name given by client which is not fixed // for android emulators, so it is indicated as outdated so that developers // might want to update SDK to get rid of this connection swap problem - if (!query.sdk_version || query.sdk_version < 3) { + if (query.os === 'Android' && (!query.sdk_version || query.sdk_version < 3)) { return query.app + ' (Outdated SDK)'; } return query.app;