diff options
Diffstat (limited to 'shadows/framework/src/main/java/org/robolectric/shadows/ShadowLegacyLooper.java')
-rw-r--r-- | shadows/framework/src/main/java/org/robolectric/shadows/ShadowLegacyLooper.java | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/shadows/framework/src/main/java/org/robolectric/shadows/ShadowLegacyLooper.java b/shadows/framework/src/main/java/org/robolectric/shadows/ShadowLegacyLooper.java index f07c7fadc..f624b60d5 100644 --- a/shadows/framework/src/main/java/org/robolectric/shadows/ShadowLegacyLooper.java +++ b/shadows/framework/src/main/java/org/robolectric/shadows/ShadowLegacyLooper.java @@ -62,12 +62,6 @@ public class ShadowLegacyLooper extends ShadowLooper { // ignore if realistic looper return; } - // Blech. We need to keep the main looper because somebody might refer to it in a static - // field. The other loopers need to be wrapped in WeakReferences so that they are not prevented - // from being garbage collected. - if (!isMainThread()) { - throw new IllegalStateException("you should only be calling this from the main thread!"); - } synchronized (loopingLoopers) { for (Looper looper : loopingLoopers.values()) { synchronized (looper) { |