Skip to content

Commit

Permalink
add setContentText when notification is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
hajoha committed Jan 13, 2025
1 parent 893fdd6 commit 64fe7b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ private void updateNotification(){
StringBuilder s = getStringBuilder();
builder.setStyle(new NotificationCompat.BigTextStyle()
.bigText(s));
builder.setContentText(getText(R.string.loggin_notifaction));
nm.notify(1, builder.build());
}
private void getInfluxDBConnectionStatus() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ private void setupNotification() {
} else {
// create notification
builder = new NotificationCompat.Builder(this, "OMNT_notification_channel")
//.setContentTitle(getText(R.string.cell_notifcation))
.setSmallIcon(R.mipmap.ic_launcher_foreground)
.setColor(Color.WHITE)
.setContentIntent(pendingIntent)
Expand Down Expand Up @@ -152,6 +151,7 @@ private void updateNotification(){
StringBuilder s = getStringBuilder();
builder.setStyle(new NotificationCompat.BigTextStyle()
.bigText(s));
builder.setContentText(getText(R.string.cell_notifcation));
nm.notify(4, builder.build());
}

Expand Down

0 comments on commit 64fe7b3

Please sign in to comment.