diff --git a/graphics/ic_stat_notify_full.svg b/graphics/ic_stat_notify_full.svg new file mode 100644 index 00000000..b353a63e --- /dev/null +++ b/graphics/ic_stat_notify_full.svg @@ -0,0 +1,116 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/src/main/java/com/nutomic/syncthingandroid/syncthing/RestApi.java b/src/main/java/com/nutomic/syncthingandroid/syncthing/RestApi.java index 0ac5f73f..b173f775 100644 --- a/src/main/java/com/nutomic/syncthingandroid/syncthing/RestApi.java +++ b/src/main/java/com/nutomic/syncthingandroid/syncthing/RestApi.java @@ -384,7 +384,7 @@ public class RestApi implements SyncthingService.OnWebGuiAvailableListener, Notification n = new NotificationCompat.Builder(mContext) .setContentTitle(mContext.getString(R.string.restart_title)) .setContentText(mContext.getString(R.string.restart_notification_text)) - .setSmallIcon(R.drawable.ic_launcher) + .setSmallIcon(R.drawable.ic_stat_notify) .setContentIntent(pi) .build(); n.flags |= Notification.FLAG_ONLY_ALERT_ONCE | Notification.FLAG_AUTO_CANCEL; diff --git a/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java b/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java index 69d9b199..c9323492 100644 --- a/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java +++ b/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java @@ -197,7 +197,7 @@ public class SyncthingService extends Service { this, getApplicationInfo().dataDir + "/" + BINARY_NAME)).start(); Notification n = new NotificationCompat.Builder(this) .setContentTitle(getString(R.string.syncthing_active)) - .setSmallIcon(R.drawable.ic_launcher) + .setSmallIcon(R.drawable.ic_stat_notify) .setOngoing(true) .setPriority(NotificationCompat.PRIORITY_MIN) .setContentIntent(PendingIntent.getActivity(this, 0, diff --git a/src/main/res/drawable-hdpi/ic_stat_notify.png b/src/main/res/drawable-hdpi/ic_stat_notify.png new file mode 100644 index 00000000..65513c02 Binary files /dev/null and b/src/main/res/drawable-hdpi/ic_stat_notify.png differ diff --git a/src/main/res/drawable-mdpi/ic_stat_notify.png b/src/main/res/drawable-mdpi/ic_stat_notify.png new file mode 100644 index 00000000..0bfce4b5 Binary files /dev/null and b/src/main/res/drawable-mdpi/ic_stat_notify.png differ diff --git a/src/main/res/drawable-xhdpi/ic_stat_notify.png b/src/main/res/drawable-xhdpi/ic_stat_notify.png new file mode 100644 index 00000000..07b456c1 Binary files /dev/null and b/src/main/res/drawable-xhdpi/ic_stat_notify.png differ diff --git a/src/main/res/drawable-xxhdpi/ic_stat_notify.png b/src/main/res/drawable-xxhdpi/ic_stat_notify.png new file mode 100644 index 00000000..87a1ee2b Binary files /dev/null and b/src/main/res/drawable-xxhdpi/ic_stat_notify.png differ