-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
fix:Add Support For Meizu Phone #434
Conversation
Fix the error case by flyme nightMode. issue #1
Hi, Thank you for your report and fix. I'm not sure this is sufficient, though: If it creates an handler, it will post events that will never be consumed (the "main" thread is not an event loop). What do you think? |
/** Initialize the current thread as a looper.
* This gives you a chance to create handlers that then reference
* this looper, before actually starting the loop. Be sure to call
* {@link #loop()} after calling this method, and end it by calling
* {@link #quit()}.
*/
public static void prepare() {
prepare(true);
} Looper.prepare() is just set a Looper for the thread. |
But the messages/events will never be processed, since we don't (and don't want to) call |
If no one creates a Hander and uses it to send a message,there is no message in the queue. What makes you say that ‘the messages/events will never be processed’? |
MzNightModeManager does (and if it creates a
Btw, the javadoc (that you pasted here: #434 (comment)) says:
|
Okay, I understand what you said. |
This actually works for the Flyme OS. Good job @olbb |
@olbb I finally applied the fix (not merged yet) to fix #921. Even if it's not very correct to prepare the looper without looping, it just makes more devices work. 👍 I call |
I'm glad this can help you. |
Hello everybody. Already about 7 hours trying to fix the problem "Scrcpy mirror window not coming to run" on Ubuntu 20.04 with my Meizu M6Note. I still keep reading how to solve it and saw some grateful messages but cannot find solution procedure. It seems to be problems with Meizu DarkMode and it should be fixed with replacement of |
@Stanislavoloshchuk The issue with Your log.txt does not contain anything related to scrcpy :( Just in case, could you test scrcpy v1.13, please? |
Hello! Thanks for reply but could you kindly advice how to roll down to v1.13, please? |
@Stanislavoloshchuk On Windows, just take the v1.13 release. On other systems, take the prebuilt-server and build: https://github.com/Genymobile/scrcpy/blob/4e9e712312c9726824d28bed4fc85721e3a2b203/BUILD.md#prebuilt-server |
the thread seem to be closed and i'm not an expert of github or forum generally, but i can told you my meizu m6-note work well under lubuntu 20.04 64bit with scrcpy version 1.12.1!! but just to inform, the meizu won't show a window in my old notebook bodhilinux 32.bit ubuntu 18.04 based and scrcpy version 1.16. Xiaomi mi 9t work well in both system.. |
Fix the error case by flyme nightMode.