|
@@ -2,6 +2,7 @@ package com.cooleshow.teacher.widgets.helper;
|
|
|
|
|
|
import android.app.Activity;
|
|
import android.app.Activity;
|
|
import android.content.Intent;
|
|
import android.content.Intent;
|
|
|
|
+import android.content.pm.ActivityInfo;
|
|
import android.net.Uri;
|
|
import android.net.Uri;
|
|
import android.text.TextUtils;
|
|
import android.text.TextUtils;
|
|
import android.view.Window;
|
|
import android.view.Window;
|
|
@@ -100,11 +101,13 @@ public class JsInterfaceAccomPanyUtils extends Object {
|
|
boolean statusBarTextColor = false;
|
|
boolean statusBarTextColor = false;
|
|
boolean isOpenLight = false;
|
|
boolean isOpenLight = false;
|
|
int orientation = -1;
|
|
int orientation = -1;
|
|
|
|
+ int c_orientation = -1;
|
|
try {
|
|
try {
|
|
isHideTitle = content.getBoolean("isHideTitle");
|
|
isHideTitle = content.getBoolean("isHideTitle");
|
|
statusBarTextColor = content.getBoolean("statusBarTextColor");
|
|
statusBarTextColor = content.getBoolean("statusBarTextColor");
|
|
isOpenLight = content.getBoolean("isOpenLight");
|
|
isOpenLight = content.getBoolean("isOpenLight");
|
|
orientation = content.getInt("orientation");
|
|
orientation = content.getInt("orientation");
|
|
|
|
+ c_orientation = content.optInt("c_orientation",ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
}
|
|
}
|
|
|
|
|
|
@@ -118,6 +121,7 @@ public class JsInterfaceAccomPanyUtils extends Object {
|
|
.withBoolean("statusBarTextColor", statusBarTextColor)
|
|
.withBoolean("statusBarTextColor", statusBarTextColor)
|
|
.withBoolean("isOpenLight", isOpenLight)
|
|
.withBoolean("isOpenLight", isOpenLight)
|
|
.withInt("orientation", orientation)
|
|
.withInt("orientation", orientation)
|
|
|
|
+ .withInt("c_orientation", c_orientation)
|
|
.navigation();
|
|
.navigation();
|
|
} else if ("openAccompanyWebView".equals(api)) {
|
|
} else if ("openAccompanyWebView".equals(api)) {
|
|
JSONObject content = jsonObject.getJSONObject("content");
|
|
JSONObject content = jsonObject.getJSONObject("content");
|
|
@@ -125,11 +129,13 @@ public class JsInterfaceAccomPanyUtils extends Object {
|
|
boolean statusBarTextColor = false;
|
|
boolean statusBarTextColor = false;
|
|
boolean isOpenLight = false;
|
|
boolean isOpenLight = false;
|
|
int orientation = -1;
|
|
int orientation = -1;
|
|
|
|
+ int c_orientation = -1;
|
|
try {
|
|
try {
|
|
isHideTitle = content.getBoolean("isHideTitle");
|
|
isHideTitle = content.getBoolean("isHideTitle");
|
|
statusBarTextColor = content.getBoolean("statusBarTextColor");
|
|
statusBarTextColor = content.getBoolean("statusBarTextColor");
|
|
isOpenLight = content.getBoolean("isOpenLight");
|
|
isOpenLight = content.getBoolean("isOpenLight");
|
|
orientation = content.getInt("orientation");
|
|
orientation = content.getInt("orientation");
|
|
|
|
+ c_orientation = content.optInt("c_orientation", ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
}
|
|
}
|
|
|
|
|
|
@@ -139,6 +145,7 @@ public class JsInterfaceAccomPanyUtils extends Object {
|
|
.withBoolean("statusBarTextColor", statusBarTextColor)
|
|
.withBoolean("statusBarTextColor", statusBarTextColor)
|
|
.withBoolean("isOpenLight", isOpenLight)
|
|
.withBoolean("isOpenLight", isOpenLight)
|
|
.withInt("orientation", orientation)
|
|
.withInt("orientation", orientation)
|
|
|
|
+ .withInt("c_orientation", c_orientation)
|
|
.navigation();
|
|
.navigation();
|
|
|
|
|
|
} else if ("startEvaluating".equals(api)) {
|
|
} else if ("startEvaluating".equals(api)) {
|