commit | 558c37532c876cef3db0ead5f3da42812fe1756d | [log] [tgz] |
---|---|---|
author | Chris Banes <chrisbanes@google.com> | Wed Aug 26 14:54:18 2015 -0400 |
committer | Chris Banes <chrisbanes@google.com> | Wed Aug 26 14:54:18 2015 -0400 |
tree | 64a1f5ca66c668b18a4e62c8fee3ead0b90c7ea1 | |
parent | 0df7523d5586db69bd4960d9e72b2c24c12b73a0 [diff] |
Remove theme check It's not needed now Change-Id: I4a45e6fdfe10a7de3127df96b422a57983ee8ff6
diff --git a/v7/appcompat/src/android/support/v7/app/AppCompatDelegateImplV7.java b/v7/appcompat/src/android/support/v7/app/AppCompatDelegateImplV7.java index 3235bdb..54ec0ad 100644 --- a/v7/appcompat/src/android/support/v7/app/AppCompatDelegateImplV7.java +++ b/v7/appcompat/src/android/support/v7/app/AppCompatDelegateImplV7.java
@@ -275,12 +275,6 @@ private void ensureSubDecor() { if (!mSubDecorInstalled) { - if (!mThemeRead) { - throw new IllegalStateException("AppCompat can not install it's decor before " - + "reading the theme. This is usually caused by calling setContentView() " - + "before super.onCreate()."); - } - mSubDecor = createSubDecor(); // If a title was set before we installed the decor, propogate it now