Android [VP]视频播放器播放本地视频时收到短信/彩信,需要界面提示 M

时间:2023-02-01 00:07:50

前言
         欢迎大家我分享和推荐好用的代码段~~
声明
         欢迎转载,但请保留文章原始出处:
         CSDN
http://www.csdn.net
         雨季o莫忧离:http://blog.csdn.net/luckkof

正文

 

 

alps\packages\apps\Gallery2\src\com\mediatek\gallery3d\video\NotificationPlusHooker.java
 
private void enableNMP() {
...
//     if (extraEnable || ExtensionHelper.getMovieStrategy(getContext()).shouldEnableNMP(getMovieItem())) {
        if (extraEnable || true ) {
            mPlusNotification = new NotificationManagerPlus.ManagerBuilder(getContext())
                    .setPositiveButton(getContext().getString(android.R.string.ok), null)
                    .setNeutralButton(null, null)
                    .setNegativeButton(null, null)
                    .setOnFirstShowListener(getPlayer())
                    .setOnLastDismissListener(getPlayer())
                    .create();
        }
...
}