- 易迪拓培训,专注于微波、射频、天线设计工程师的培养
L版本全屏显示来电界面
录入:edatop.com 点击:
[DESCRIPTION]
L版本中, 来电直接显示来电界面, 而不是 show Notification(HeADSUp view)
[SOLUTION]
HeadsUp 是 google 在 L 版本上面 PhoneStatusBar 中新增的功能.
而在未锁屏时来电就是通过这种方式来显示的. 从而替代了全屏显示来电界面的方式.
如果客户还是倾向于全屏显示来电界面. 则可以通过如下方式来单独关闭通话的 HeadsUp 功能.
File:
php?mod=tag&id=6090" target="_blank" class="relatedlink">Frameworks\base\packages\SystemUI\src\com\android\systemui\statusbar\phone\PhoneStatusB
ar.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版本中, 来电直接显示来电界面, 而不是 show Notification(HeADSUp view)
[SOLUTION]
HeadsUp 是 google 在 L 版本上面 PhoneStatusBar 中新增的功能.
而在未锁屏时来电就是通过这种方式来显示的. 从而替代了全屏显示来电界面的方式.
如果客户还是倾向于全屏显示来电界面. 则可以通过如下方式来单独关闭通话的 HeadsUp 功能.
File:
php?mod=tag&id=6090" target="_blank" class="relatedlink">Frameworks\base\packages\SystemUI\src\com\android\systemui\statusbar\phone\PhoneStatusB
ar.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;
}
}
.................................;
}
签到专用组
来看看:loveliness:
来看看
来看看
签到组,不懂
申明:网友回复良莠不齐,仅供参考。如需专业帮助,请学习易迪拓培训专家讲授的ADS视频培训课程。
ADS培训课程推荐详情>>
国内最全面、最专业的Agilent ADS培训课程,可以帮助您从零开始,全面系统学习ADS设计应用【More..】
- Agilent ADS教学培训课程套装
- 两周学会ADS2011、ADS2013视频教程
- ADS2012、ADS2013射频电路设计详解
- ADS高低阻抗线微带滤波器设计培训教程
- ADS混频器仿真分析实例视频培训课程
- ADS Momentum电磁仿真设计视频课程
- ADS射频电路与通信系统设计高级培训
- ADS Layout和电磁仿真设计培训视频
- ADS Workspace and Simulators Training Course
- ADS Circuit Simulation Training Course
- ADS Layout and EM Simulation Training Course
- Agilent ADS 内部原版培训教材合集