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

Commit 8cc1d277 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 am: d8bb3b9c

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



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