当用户通过按下设备主页按钮将前台应用程序发送到后台时,后台应用程序 UI 必须变得模糊

Background application UI has to become blurred when the user sends the foreground app to background by pressing the device home button

用户将 android 设备中的当前 运行 应用程序发送到后台,当尝试查看设备中的所有后台应用程序时,用户应该看不到后台应用程序的内容。而不是用户必须看到模糊或空白的屏幕,当应用程序出现在前台时点击它,用户可以看到实际内容。

super.onCreate(savedInstanceState)setContentView 之间的 onCreate 方法中设置:

 // White image on recent apps overview and disable screenshot functionality
 window.setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE)