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

Commit 9d2eb81b 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 am: 63cabfe0

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



Change-Id: Ia0c45157080ec4cf32d63c11e9d6988d8a4befd3
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents e977cc8f 63cabfe0
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());
        }
    }