OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6bb8e9
)
Adde back check to make sure Activity.recreate() is called on main thread.
author
Wale Ogunwale
<ogunwale@google.com>
Thu, 17 May 2018 00:23:48 +0000
(17:23 -0700)
committer
Wale Ogunwale
<ogunwale@google.com>
Thu, 17 May 2018 00:23:48 +0000
(17:23 -0700)
Change-Id: Id8fa7e1c17ee3d42a19c82dc8cc1fec2de1757d1
Fixes:
79703568
Test: Existing test pass.
core/java/android/app/Activity.java
patch
|
blob
|
history
diff --git
a/core/java/android/app/Activity.java
b/core/java/android/app/Activity.java
index
3b62bd7
..
057e796
100644
(file)
--- a/
core/java/android/app/Activity.java
+++ b/
core/java/android/app/Activity.java
@@
-5578,6
+5578,9
@@
public class Activity extends ContextThemeWrapper
if (mParent != null) {
throw new IllegalStateException("Can only be called on top-level activity");
}
+ if (Looper.myLooper() != mMainThread.getLooper()) {
+ throw new IllegalStateException("Must be called from main thread");
+ }
mMainThread.scheduleRelaunchActivity(mToken);
}