Skip to content

Use only one thread to update device list #387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
codeanticode opened this issue Aug 14, 2017 · 1 comment
Closed

Use only one thread to update device list #387

codeanticode opened this issue Aug 14, 2017 · 1 comment

Comments

@codeanticode
Copy link
Contributor

codeanticode commented Aug 14, 2017

Right now, each instance of the Android editor launches its own thread to call adb devices at regular intervals in order to update the devices list in the menu. It would be better if only one thread could be used for this purpose, but for this to work, the thread should be able to access all currently open editors.

Or perhaps, we could simply update the list when the user opens the Android menu, if this is possible. I think this would be better than using threads.

@codeanticode
Copy link
Contributor Author

Run the update task only when the android menu is selected: b7238a4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant