Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63cabfe0 authored by Winson Chung's avatar Winson Chung Committed by Automerger Merge Worker
Browse files

Merge "Add more logging when view methods are called from the wrong thread"...

Merge "Add more logging when view methods are called from the wrong thread" into tm-qpr-dev am: 7f20b9db am: 59bacd62

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21553701



Change-Id: Ide4ca2ea7571edce1fae5f0d4910fb9643c2d667
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 7d34fb1a 59bacd62
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -10078,9 +10078,12 @@ public final class ViewRootImpl implements ViewParent,
    }

    void checkThread() {
        if (mThread != Thread.currentThread()) {
        Thread current = Thread.currentThread();
        if (mThread != current) {
            throw new CalledFromWrongThreadException(
                    "Only the original thread that created a view hierarchy can touch its views.");
                    "Only the original thread that created a view hierarchy can touch its views."
                            + " Expected: " + mThread.getName()
                            + " Calling: " + current.getName());
        }
    }