Skip to content

Commit 8325f9c

Browse files
Use NotificationCompat.Builder to fix setSilent error
1 parent 1881029 commit 8325f9c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎app/src/main/java/com/joebuildsthings/gamedeck/OverlayService.kt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import androidx.compose.ui.platform.ViewCompositionStrategy
2828
import androidx.compose.ui.text.font.FontWeight
2929
import androidx.compose.ui.unit.dp
3030
import androidx.compose.ui.unit.sp
31+
import androidx.core.app.NotificationCompat
3132
import com.joebuildsthings.gamedeck.ui.theme.AccentRed
3233
import com.joebuildsthings.gamedeck.ui.theme.AccentRedBright
3334
import com.joebuildsthings.gamedeck.ui.theme.AccentRedDim
@@ -102,7 +103,7 @@ class OverlayService : Service() {
102103
mgr.createNotificationChannel(ch)
103104
}
104105
}
105-
return Notification.Builder(this, CHANNEL_ID)
106+
return NotificationCompat.Builder(this, CHANNEL_ID)
106107
.setContentTitle("GameDeck")
107108
.setContentText("Overlay running")
108109
.setSmallIcon(android.R.drawable.ic_menu_info_details)

0 commit comments

Comments
 (0)