altosdroid: Switch to NotificationCompat
[fw/altos] / altosdroid / app / src / main / java / org / altusmetrum / AltosDroid / TelemetryService.java
index 5dba24ba071897316143d6a2ab21cf0addf10fef..d4f72b3f7421851d8d4051b4f6a15d590d360af9 100644 (file)
@@ -31,6 +31,7 @@ import android.content.Intent;
 import android.content.Context;
 import android.os.*;
 import android.widget.Toast;
+import androidx.core.app.NotificationCompat;
 
 import org.altusmetrum.altoslib_13.*;
 
@@ -657,7 +658,7 @@ public class TelemetryService extends Service implements AltosIdleMonitorListene
                                                : "";
 
                // Create notification to be displayed while the service runs
-               Notification notification = new Notification.Builder(this, channelId)
+               Notification notification = new NotificationCompat.Builder(this, channelId)
                                .setContentTitle(getText(R.string.telemetry_service_label))
                                .setContentText(getText(R.string.telemetry_service_started))
                                .setContentIntent(contentIntent)