L版本如何在来电时直接显示全屏界面
2016-12-08 16:16
417 查看
HeadsUp 是 google 在 L 版本上面 PhoneStatusBar 中新增的功能.
而在未锁屏时来电就是通过这种方式来显示的. 从而替代了全屏显示来电界面的方式.
如果客户还是倾向于全屏显示来电界面. 则可以通过如下方式来单独关闭通话的 HeadsUp 功能(关键字"turn off HeadsUp for dialer")
File: frameworks\base\packages\SystemUI\src\com\android\systemui\statusbar\phone\PhoneStatusBar.java
/// M: turn off HeadsUp for dialer. @{
private final String PACKAGES_DIALER = "com.android.dialer";
/// @}
public void addNotification(StatusBarNotification notification, RankingMap ranking) {
/// M: turn off HeadsUp for dialer. @{
boolean belongsToDialer = PACKAGES_DIALER.equals(notification.getPackageName());
if (DEBUG) {
Log.d(TAG, "addNotification key=" + notification.getKey() +
", package=" + notification.getPackageName());
}
if (!belongsToDialer &&
/// @}
mUseHeadsUp && shouldInterrupt(notification)) {
if (DEBUG) Log.d(TAG, "launching notification in heads up mode");
Entry interruptionCandidate = new Entry(notification, null);
ViewGroup holder = mHeadsUpNotificationView.getHolder();
if (inflateViewsForHeadsUp(interruptionCandidate, holder)) {
// 1. Populate mHeadsUpNotificationView
mHeadsUpNotificationView.showNotification(interruptionCandidate);
// do not show the notification in the shade, yet.
return;
}
}
.................................;
而在未锁屏时来电就是通过这种方式来显示的. 从而替代了全屏显示来电界面的方式.
如果客户还是倾向于全屏显示来电界面. 则可以通过如下方式来单独关闭通话的 HeadsUp 功能(关键字"turn off HeadsUp for dialer")
File: frameworks\base\packages\SystemUI\src\com\android\systemui\statusbar\phone\PhoneStatusBar.java
/// M: turn off HeadsUp for dialer. @{
private final String PACKAGES_DIALER = "com.android.dialer";
/// @}
public void addNotification(StatusBarNotification notification, RankingMap ranking) {
/// M: turn off HeadsUp for dialer. @{
boolean belongsToDialer = PACKAGES_DIALER.equals(notification.getPackageName());
if (DEBUG) {
Log.d(TAG, "addNotification key=" + notification.getKey() +
", package=" + notification.getPackageName());
}
if (!belongsToDialer &&
/// @}
mUseHeadsUp && shouldInterrupt(notification)) {
if (DEBUG) Log.d(TAG, "launching notification in heads up mode");
Entry interruptionCandidate = new Entry(notification, null);
ViewGroup holder = mHeadsUpNotificationView.getHolder();
if (inflateViewsForHeadsUp(interruptionCandidate, holder)) {
// 1. Populate mHeadsUpNotificationView
mHeadsUpNotificationView.showNotification(interruptionCandidate);
// do not show the notification in the shade, yet.
return;
}
}
.................................;
相关文章推荐
- FAQ14847]L版本全屏显示来电界面
- L版本全屏显示来电界面
- 如何修改android 5.x版本recovery mode 小机器人界面进入菜单,由volume up&power改为直接按power(如同android 4.x以前版本)
- 如何修改android 5.x版本recovery mode 小机器人界面进入菜单,由volume up&power改为直接按power(如同android 4.x以前版本)
- win7开机进入系统如何不显示登录界面直接进入系统呢
- 9.ubuntu如何使amarok显示中文界面
- 多用户登录时,如何在登录界面上显示administrator账户
- .net中使无窗体界面全屏显示时不挡住任务栏,或全屏显示
- VC 界面上如何显示中文
- 如何做到既保持XP风格界面又能正常显示toobar中的图标
- 表A中的记录随时变化,程序显示A数据的界面中如何自动也跟着刷新?
- 如何实现包含插件功能的Applet Web界面 ,WebGIS Java Applet版本
- linux启动后如何直接进入字符界面及如何返回图形界面
- 如何在Xp中 直接跳过用户登陆界面
- 如何在Moss中直接显示错误
- 请问如何查看bitmap中的图片?有没有直接的办法,必须用image来显示吗?
- vc6/.net下console程序如何不显示界面
- 如何通过动态生成Html灵活实现DataGrid分类统计的界面显示功能
- 在Web界面下数形目录显示程序(版本1.0)
- 请问:软件运行前的设置界面显示'第一次运行软件,正在设置...'等信息的东东叫什么?如何做出这种东东呢?