|
@@ -189,7 +189,6 @@ public class HtmlActivity extends BaseActivity<ActivityHtml1Binding> implements
|
|
|
// getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
|
|
|
StyleConfig.setTheme(this);//errorView是公共的,里面有引用不同样式,故在老师端设置这个
|
|
|
super.onCreate(savedInstanceState);
|
|
|
- KeyboardUtils.fixAndroidBug5497(this);
|
|
|
EventBus.getDefault().register(this);
|
|
|
if (UserHelper.isAgreePrivacy()) {
|
|
|
api = WXAPIFactory.createWXAPI(this, null);
|
|
@@ -262,6 +261,12 @@ public class HtmlActivity extends BaseActivity<ActivityHtml1Binding> implements
|
|
|
} else {
|
|
|
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
|
|
|
}
|
|
|
+
|
|
|
+ if (orientation != ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) {
|
|
|
+ //横屏模式忽略
|
|
|
+ KeyboardUtils.fixAndroidBug5497(this);
|
|
|
+ }
|
|
|
+
|
|
|
int c_orientation = intent.getIntExtra("c_orientation", ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
|
|
|
isNeedResetScreenOrientation = c_orientation == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT;
|
|
|
LOG.i("c_orientation:" + c_orientation + "--isNeedResetScreenOrientation:" + isNeedResetScreenOrientation);
|