|
|
@@ -199,7 +199,7 @@ public class P2PIncomingNotificationService extends Service implements EventObse
|
|
|
builder.setAutoCancel(true);
|
|
|
builder.setOngoing(true);
|
|
|
builder.setWhen(System.currentTimeMillis());
|
|
|
- builder.setSmallIcon(R.drawable.icon_notification);
|
|
|
+ builder.setSmallIcon(R.mipmap.ic_launcher);
|
|
|
builder.setPriority(NotificationCompat.PRIORITY_DEFAULT);
|
|
|
builder.setVisibility(NotificationCompat.VISIBILITY_PUBLIC);
|
|
|
if (P2PCallType.VOICE == callType){
|
|
|
@@ -224,7 +224,7 @@ public class P2PIncomingNotificationService extends Service implements EventObse
|
|
|
CloudImageLoaderFactory.get().downloadOnly(friend.getWebIcon(), new CloudImageLoadListener() {
|
|
|
@Override
|
|
|
public void onImageLoadFailure(Object key) {
|
|
|
- this.onImageLoadSucceed(key,BitmapFactory.decodeResource(getResources(), R.drawable.icon_notification));
|
|
|
+ this.onImageLoadSucceed(key,BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher));
|
|
|
}
|
|
|
@Override
|
|
|
public void onImageLoadSucceed(Object key, Bitmap resource) {
|
|
|
@@ -241,7 +241,7 @@ public class P2PIncomingNotificationService extends Service implements EventObse
|
|
|
builder.setAutoCancel(false);
|
|
|
builder.setOngoing(true);
|
|
|
builder.setWhen(System.currentTimeMillis());
|
|
|
- builder.setSmallIcon(R.drawable.icon_notification);
|
|
|
+ builder.setSmallIcon(R.mipmap.ic_launcher);
|
|
|
builder.setPriority(NotificationCompat.PRIORITY_MAX);
|
|
|
|
|
|
builder.setContentIntent(PendingIntent.getActivity(MoodTalkApplication.getInstance(), (int)session.sourceId,getActivityIntent(), PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE));
|
|
|
@@ -270,7 +270,7 @@ public class P2PIncomingNotificationService extends Service implements EventObse
|
|
|
CloudImageLoaderFactory.get().downloadOnly(friend.getWebIcon(), new CloudImageLoadListener() {
|
|
|
@Override
|
|
|
public void onImageLoadFailure(Object key) {
|
|
|
- this.onImageLoadSucceed(key,BitmapFactory.decodeResource(getResources(), R.drawable.icon_notification));
|
|
|
+ this.onImageLoadSucceed(key,BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher));
|
|
|
}
|
|
|
@Override
|
|
|
public void onImageLoadSucceed(Object key, Bitmap resource) {
|