Skip to content

Commit 66a8dbf

Browse files
committed
Fix https://jira.unity3d.com/browse/ALB-52, don't query for devices if logcat window is unfocused
1 parent 20de1e1 commit 66a8dbf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

com.unity.mobile.android-logcat/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this package will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [1.4.7] - 2025-12-12
8+
### Fixes & Improvements
9+
- Don't periodically query for devices when none are connected and logcat window is unfocused.
10+
711
## [1.4.6] - 2025-06-07
812
### Fixes & Improvements
913
- Stacktrace window will validate buildId when resolving stacktrace, informing you if wrong symbol file is used. Reset symbol regexes if needed.

com.unity.mobile.android-logcat/Editor/AndroidLogcatConsoleWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ private void OnUpdate()
178178
{
179179
var deviceQuery = m_Runtime.DeviceQuery;
180180

181-
if (deviceQuery.FirstConnectedDevice == null)
181+
if (deviceQuery.FirstConnectedDevice == null && hasFocus)
182182
deviceQuery.UpdateConnectedDevicesList(false);
183183

184184
var firstDevice = deviceQuery.FirstConnectedDevice;

0 commit comments

Comments
 (0)