java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation

前端 未结 30 1743
难免孤独
难免孤独 2020-12-02 04:43

I am facing the problem while retrieving the contacts from the contact book in Android 8.0 Oreo java.lang.IllegalStateException: Only fullscreen opaque activities can reques

30条回答
  •  感情败类
    2020-12-02 05:30

    If you use a fullscreen transparent activity, there is no need to specify the orientation lock on the activity. It will take the configuration settings of the parent activity. So if the parent activity has in the manifest:

    android:screenOrientation="portrait"

    your translucent activity will have the same orientation lock: portrait.

提交回复
热议问题