make some Handler callback magic synchronous to avoid having to implement it properly

This commit is contained in:
Mis012
2022-12-27 17:19:08 +01:00
parent 9ec3bf58c2
commit 696fa5a192
3 changed files with 20 additions and 4 deletions

View File

@@ -114,8 +114,9 @@ public final class Looper {
* Run the message queue in this thread. Be sure to call
* {@link #quit()} to end the loop.
*/
public static void loop() {/*
final Looper me = myLooper();
public static void loop() {
System.out.println("oops, Looper.loop called... and we don't implement that");
/*final Looper me = myLooper();
if (me == null) {
throw new RuntimeException("No Looper; Looper.prepare() wasn't called on this thread.");
}