diff --git a/android_app/app/src/main/java/com/health/openscale/core/worker/ReminderWorker.kt b/android_app/app/src/main/java/com/health/openscale/core/worker/ReminderWorker.kt index 4da4969a..11856be4 100644 --- a/android_app/app/src/main/java/com/health/openscale/core/worker/ReminderWorker.kt +++ b/android_app/app/src/main/java/com/health/openscale/core/worker/ReminderWorker.kt @@ -24,6 +24,7 @@ import android.app.PendingIntent import android.content.Context import android.content.Intent import android.content.pm.PackageManager +import android.graphics.BitmapFactory import android.os.Build import androidx.core.app.NotificationCompat import androidx.core.app.NotificationManagerCompat @@ -82,8 +83,8 @@ class ReminderWorker @AssistedInject constructor( val pendingIntent = PendingIntent.getActivity(appContext, 0, intent, pendingFlags) val notification = NotificationCompat.Builder(appContext, CHANNEL_ID) - .setSmallIcon(R.drawable.ic_launcher_beta_foreground) - .setContentTitle(appContext.getString(R.string.reminder_notification_title)) + .setSmallIcon(R.drawable.ic_notification_foreground) + .setLargeIcon(BitmapFactory.decodeResource(appContext.resources, R.drawable.ic_launcher_foreground)) .setContentText(content) .setStyle(NotificationCompat.BigTextStyle().bigText(content)) .setContentIntent(pendingIntent) diff --git a/android_app/app/src/main/res/drawable/ic_notification_foreground.xml b/android_app/app/src/main/res/drawable/ic_notification_foreground.xml new file mode 100644 index 00000000..2b639664 --- /dev/null +++ b/android_app/app/src/main/res/drawable/ic_notification_foreground.xml @@ -0,0 +1,53 @@ + + + + + + +