L版本全屏显示来电界面
2017-09-25 17:16
267 查看
描述
L版本中, 来电直接显示来电界面, 而不是 show Notification(HeadsUp view)解决:
HeadsUp 是 google 在 L 版本上面 PhoneStatusBar 中新增的功能.而在未锁屏时来电就是通过这种方式来显示的. 从而替代了全屏显示来电界面的方式.
如果还是倾向于全屏显示来电界面. 则可以通过如下方式来单独关闭通话的 HeadsUp 功能.
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"; /// @} @Override 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; } } .................................; }
相关文章推荐
- L版本如何在来电时直接显示全屏界面
- FAQ14847]L版本全屏显示来电界面
- [unity3d]自定义loading界面和浏览器的全屏显示
- Android设置Activity(界面)为全屏显示的两种方法 xml和java程序
- android 图库查看大图界面没有全屏显示
- ecmobile中IOS版本中界面文字不显示的解决
- 三星S4,呼转的来电,在来电界面上不显示的解决方案
- [unity3d]自定义loading界面和浏览器的全屏显示
- Android界面去掉标题栏,设置为全屏显示
- 【Android】软件界面全屏显示
- Android 界面全屏显示
- C# Winform 怎么让界面全屏显示
- jira 新建问题界面AffectVersions只显示未发布版本
- android 自动拒接后再取消自动拒接,该联系人来电界面无图标显示,且点击挂断无反应
- 安卓项目欢迎界面效果制作(界面显示应用版本信息)
- Android 4.0 全屏显示,在我的原道n90 ICS 4.0.3版本实验通过
- Android界面去掉标题栏,设置为全屏显示
- win32 界面全屏显示【覆盖任务栏】
- PHP7.1和dede5.7-utf8版本不兼容,后台会显示如下界面
- android 7.0 使用 webview 访问 https 协议的网址,界面显示空白,其他android版本正常。