Commit 86dd5bba authored by jyx's avatar jyx

禁止截屏

parent 8b808284
......@@ -10,8 +10,8 @@ android {
applicationId "com.duben.xixiplayletu"
minSdkVersion rootProject.ext.androidMinSdkVersion
targetSdkVersion rootProject.ext.androidTargetSdkVersion
versionCode 723
versionName "7.2.3"
versionCode 724
versionName "7.2.4"
flavorDimensions "default"
// dex突破65535的限制
......
......@@ -39,7 +39,7 @@ public abstract class BaseActivity extends BaseAppCompatActivity implements Base
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// 禁止截图
// getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
if (android.os.Build.VERSION.SDK_INT != Build.VERSION_CODES.O) {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment