驳回MediaStyle通知 [英] Dismissing MediaStyle notifications

查看:86
本文介绍了驳回MediaStyle通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在棒棒堂新的Andr​​oid MediaStyle通知没有解雇按钮。貌似已经有在谷歌code为它的错误。

New Android MediaStyle notifications in Lollipop don't have a dismiss button. Looks like there is already a bug for it on Google Code.

有谁知道什么是对这一问题的很好的办法解决,直到错误得到解决?

Does anyone know what's a good workaround for this issue until the bug is resolved?

如果我们只是延迟切换到MediaStyle?还是用行动作为解雇按钮之一吗?

Should we just delay switching to MediaStyle? Or use one of the actions as the dismiss button?

推荐答案

这似乎工作得很好的机制是使同时播放音乐的通知,正在进行的,使其不能持续(允许它是刷卡解雇)的音乐时已暂停。这似乎是,谷歌音乐已经使用的技术。

One mechanism which appears to work quite well is make the notification ongoing while music is playing and make it not ongoing (allowing it to be swipe dismissed) when the music is paused. This seems to be the technique that Google Music already uses.

这篇关于驳回MediaStyle通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆