2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-29 05:07:40 +00:00

Use BigText style for share notification

This commit is contained in:
Erik Duisters 2019-01-26 17:01:50 +01:00 committed by Nicolas Fella
parent e6673cc10f
commit e1b665bc06

View File

@ -43,7 +43,6 @@ import java.io.InputStream;
import androidx.core.app.NotificationCompat;
import androidx.core.content.FileProvider;
//TODO: Starting API 24 notification title and text are both displayed on 1 line above the progress bar. Because title can be long, the text is often not displayed
class ShareNotification {
private final NotificationManager notificationManager;
private final int notificationId;
@ -86,6 +85,7 @@ class ShareNotification {
public void setProgress(int progress, String progressMessage) {
builder.setProgress( 100, progress, false);
builder.setContentText(progressMessage);
builder.setStyle(new NotificationCompat.BigTextStyle().bigText(progressMessage));
}
public void setFinished(String message) {