细节参考:https://android.googlesource.com
内容如下:

Prevent apps to overlay other apps via toast windowsIt was possible for apps to put toast type windowsthat overlay other apps which toast winodws aren'tremoved after a timeout.Now for apps targeting SDK greater than N MR1 to add atoast window one needs to have a special token. The tokenis added by the notificatoion manager service only forthe lifetime of the shown toast and is then removedincluding all windows associated with this token. Thisprevents apps to add arbitrary toast windows.Since legacy apps may rely on the ability to directlyadd toasts we mitigate by allowing these apps to stilladd such windows for unlimited duration if this app isthe currently focused one, i.e. the user interacts withit then it can overlay itself, otherwise we make surethese toast windows are removed after a timeout likea toast would be.We don't allow more that one toast window per UID beingadded at a time which prevents 1) legacy apps to put thesame toast after a timeout to go around our new policyof hiding toasts after a while; 2) modern apps to reusethe passed token to add more than one window; Note thatthe notification manager shows toasts one at a time.bug:30150688Change-Id: Icc8f8dbd060762ae1a7b1720e96c5afdb8aff3fd

更多相关文章

  1. android 根据EditText 内容,改变TextView显示
  2. android 使内容铺满全屏
  3. Android Dialog 去除背景内容模糊
  4. android获取联系人所有内容
  5. 探寻 Android 代码抄袭细节,情节还不算严重
  6. 成为更好的Android开发者前,我们需要注意的31个细节
  7. 解决ScrollView中填充内容上下会有阴影的问题
  8. Android studio assets error:前言中不允许有内容
  9. Android中自定义带图标和清空内容按钮的EditText控件

随机推荐

  1. Centos 7.3下SQL Server安装配置方法图文
  2. sqlserver 树形结构查询单表实例代码
  3. Sql注入工具_动力节点Java学院整理
  4. sql注入过程详解_动力节点Java学院整理
  5. Sql注入原理简介_动力节点Java学院整理
  6. SQL Server ltrim(rtrim()) 去不掉空格的
  7. 深入浅析SQL中的group by 和 having 用法
  8. sqlserver分页查询处理方法小结
  9. SqlServer索引的原理与应用详解
  10. SQL Server 2012使用Offset/Fetch Next实