Skip to content

Commit 68d4561

Browse files
authored
Merge pull request #204 from Unity-Technologies/dont-update-devices-unfocused
Don't query devices if window is unfocused
2 parents 6984206 + 66a8dbf commit 68d4561

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
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;

com.unity.mobile.android-logcat/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.unity.mobile.android-logcat",
33
"displayName": "Android Logcat",
4-
"version": "1.4.6",
4+
"version": "1.4.7",
55
"unity": "2021.3",
66
"description": "Android Logcat package provides support for:\n - Android log messages\n - Android application memory statistics\n - Input injection\n - Android Screen Capture\n - Android Screen Recorder\n - Stacktrace Utility\n\nClick the 'View documentation' link above for more information.\n\nThe window can be accessed in Unity Editor via 'Window > Analysis > Android Logcat', or simply by pressing 'Alt+6' on Windows or 'Option+6' on macOS. \n\nMake sure to have Android module loaded and switch to Android build target in 'Build Settings' window if the menu doesn't exist.",
77
"keywords": ["Mobile", "Android", "Logcat"],

0 commit comments

Comments
 (0)