Qihoo360 / RePlugin

RePlugin - A flexible, stable, easy-to-use Android Plug-in Framework
Apache License 2.0
7.27k stars 1.53k forks source link

插件中activity要适配横屏,代码强制横屏会闪屏的问题 #927

Open TomHuor opened 4 years ago

TomHuor commented 4 years ago

问题详细描述 Detailed description of the problem

插件中activity要适配横屏,代码强制横屏会闪屏的问题

复现问题步骤 Steps to reproduce the problem

  1. 插件项目中再manifest中将activity设置为横屏,放到宿主中显示依然是竖屏
  2. 在每个activity中动态设置为横屏,显示的时候会先竖屏后横屏

其它重要信息 Other important information

replugin-host-lib/gradle Version:2.3.3 rePlugin-plugin-lib/gradle Version:2.3.3

Android API Version: Android 手机型号&ROM(Phone model & ROM):

Logcat上下文 Logcat context

TomHuor commented 4 years ago

参考:https://github.com/Qihoo360/RePlugin/blob/dev/replugin-host-gradle/src/main/groovy/com/qihoo360/replugin/gradle/host/handlemanifest/ComponentsGenerator.groovydef static final oriV = 'portrait' 改成 def static final oriV = 'unspecified'