|
|
@@ -1,12 +1,15 @@
|
|
|
package com.sheep.gamegroup.view.activity;
|
|
|
|
|
|
import android.content.Intent;
|
|
|
+import android.content.pm.ActivityInfo;
|
|
|
import android.support.v4.app.Fragment;
|
|
|
|
|
|
import com.sheep.gamegroup.absBase.BaseContainerActivity;
|
|
|
+import com.sheep.gamegroup.model.api.IWeb;
|
|
|
import com.sheep.gamegroup.model.entity.WebParams;
|
|
|
import com.sheep.gamegroup.module.webview.fragment.FgtWeb;
|
|
|
import com.sheep.gamegroup.module.webview.fragment.FgtWebX5;
|
|
|
+import com.sheep.jiuyan.samllsheep.Config;
|
|
|
import com.sheep.jiuyan.samllsheep.base.BaseFragment;
|
|
|
import com.snail.antifake.jni.EmulatorDetectUtil;
|
|
|
import com.umeng.socialize.UMShareAPI;
|
|
|
@@ -50,6 +53,19 @@ public class ActWebX5 extends BaseContainerActivity {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ public void finish() {
|
|
|
+ if (fragment instanceof IWeb) {
|
|
|
+ IWeb webFragment = (IWeb) fragment;
|
|
|
+ String url = webFragment.getWebUrl();
|
|
|
+ if (url.contains(Config.PATH_DIRECTIONAL_RECHARGE)
|
|
|
+ || url.contains(Config.PATH_DIRECTIONAL_MAKEGOLD)) {
|
|
|
+ setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ super.finish();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
protected void onResume() {
|
|
|
super.onResume();
|
|
|
}
|