title: Lock screen orientation when targeting Android API 27 with a non-opaque activity
body: <p>I have an activity that has <code>android:windowIsTranslucent</code> set to <code>true</code> and <code>android:windowBackground</code> set to a translucent background. I just changed my target and compile sdk version to 27, and I get an exception when launching this activity now:</p>
  
  <p><code>java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation</code></p>
  
  <p>Since this is a new sdk, there isn't anything online about it yet (and it seems to result from this line of code: <a href="https://android.googlesource.com/platform/frameworks/base.git/+/master/core/java/android/app/Activity.java#987" rel="noreferrer">https://android.googlesource.com/platform/frameworks/base.git/+/master/core/java/android/app/Activity.java#987</a> )</p>
  
  <p>Is there any way to get around this? The app doesn't crash if I take out <code>android:screenOrientation="portrait"</code> from my manifest for this activity, but I would like to be able to keep it like that.</p>