mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-09-02 15:15:09 +00:00
Use BigText style for share notification
This commit is contained in:
committed by
Nicolas Fella
parent
e6673cc10f
commit
e1b665bc06
@@ -43,7 +43,6 @@ import java.io.InputStream;
|
|||||||
import androidx.core.app.NotificationCompat;
|
import androidx.core.app.NotificationCompat;
|
||||||
import androidx.core.content.FileProvider;
|
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 {
|
class ShareNotification {
|
||||||
private final NotificationManager notificationManager;
|
private final NotificationManager notificationManager;
|
||||||
private final int notificationId;
|
private final int notificationId;
|
||||||
@@ -86,6 +85,7 @@ class ShareNotification {
|
|||||||
public void setProgress(int progress, String progressMessage) {
|
public void setProgress(int progress, String progressMessage) {
|
||||||
builder.setProgress( 100, progress, false);
|
builder.setProgress( 100, progress, false);
|
||||||
builder.setContentText(progressMessage);
|
builder.setContentText(progressMessage);
|
||||||
|
builder.setStyle(new NotificationCompat.BigTextStyle().bigText(progressMessage));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFinished(String message) {
|
public void setFinished(String message) {
|
||||||
|
Reference in New Issue
Block a user