mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 17:52:17 -05:00
swapped icons for foreground services
This commit is contained in:
parent
6f7fb7dec6
commit
8d90b3fbf1
@ -4,6 +4,7 @@ import android.app.NotificationManager;
|
|||||||
import android.app.Service;
|
import android.app.Service;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
import android.os.Build;
|
||||||
import android.os.IBinder;
|
import android.os.IBinder;
|
||||||
import android.support.v4.app.NotificationCompat;
|
import android.support.v4.app.NotificationCompat;
|
||||||
|
|
||||||
@ -48,7 +49,7 @@ public class ExportLogsService extends Service {
|
|||||||
NotificationManager mNotifyManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
|
NotificationManager mNotifyManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
|
||||||
NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(getBaseContext());
|
NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(getBaseContext());
|
||||||
mBuilder.setContentTitle(getString(R.string.notification_export_logs_title))
|
mBuilder.setContentTitle(getString(R.string.notification_export_logs_title))
|
||||||
.setSmallIcon(R.drawable.ic_notification)
|
.setSmallIcon(R.drawable.ic_import_export_white_24dp)
|
||||||
.setProgress(conversations.size(), 0, false);
|
.setProgress(conversations.size(), 0, false);
|
||||||
startForeground(NOTIFICATION_ID, mBuilder.build());
|
startForeground(NOTIFICATION_ID, mBuilder.build());
|
||||||
|
|
||||||
|
@ -497,16 +497,14 @@ public class NotificationService {
|
|||||||
final int cancelIcon;
|
final int cancelIcon;
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||||
mBuilder.setCategory(Notification.CATEGORY_SERVICE);
|
mBuilder.setCategory(Notification.CATEGORY_SERVICE);
|
||||||
mBuilder.setSmallIcon(R.drawable.ic_import_export_white_24dp);
|
|
||||||
cancelIcon = R.drawable.ic_cancel_white_24dp;
|
cancelIcon = R.drawable.ic_cancel_white_24dp;
|
||||||
} else {
|
} else {
|
||||||
mBuilder.setSmallIcon(R.drawable.ic_stat_communication_import_export);
|
|
||||||
cancelIcon = R.drawable.ic_action_cancel;
|
cancelIcon = R.drawable.ic_action_cancel;
|
||||||
}
|
}
|
||||||
|
mBuilder.setSmallIcon(R.drawable.ic_link_white_24dp);
|
||||||
mBuilder.addAction(cancelIcon,
|
mBuilder.addAction(cancelIcon,
|
||||||
mXmppConnectionService.getString(R.string.disable_foreground_service),
|
mXmppConnectionService.getString(R.string.disable_foreground_service),
|
||||||
createDisableForeground());
|
createDisableForeground());
|
||||||
setNotificationColor(mBuilder);
|
|
||||||
return mBuilder.build();
|
return mBuilder.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BIN
src/main/res/drawable-hdpi/ic_link_white_24dp.png
Normal file
BIN
src/main/res/drawable-hdpi/ic_link_white_24dp.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 430 B |
BIN
src/main/res/drawable-mdpi/ic_link_white_24dp.png
Normal file
BIN
src/main/res/drawable-mdpi/ic_link_white_24dp.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 297 B |
BIN
src/main/res/drawable-xhdpi/ic_link_white_24dp.png
Normal file
BIN
src/main/res/drawable-xhdpi/ic_link_white_24dp.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 494 B |
BIN
src/main/res/drawable-xxhdpi/ic_link_white_24dp.png
Normal file
BIN
src/main/res/drawable-xxhdpi/ic_link_white_24dp.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 670 B |
BIN
src/main/res/drawable-xxxhdpi/ic_link_white_24dp.png
Normal file
BIN
src/main/res/drawable-xxxhdpi/ic_link_white_24dp.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 865 B |
Loading…
Reference in New Issue
Block a user