不要なSuppressを削除(不具合に気づけなくなるため)

This commit is contained in:
ろむねこ 2024-07-11 14:29:03 +09:00
parent 8a4fa768a8
commit 55334597c3
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -181,7 +181,7 @@ public class TestService extends Service {
vibrator.vibrate(VibrationEffect.createOneShot(2000, VibrationEffect.DEFAULT_AMPLITUDE));
}
@SuppressLint("NotificationTrampoline") NotificationCompat.Builder builder = new NotificationCompat.Builder(context, "CHANNEL_ID")
NotificationCompat.Builder builder = new NotificationCompat.Builder(context, "CHANNEL_ID")
.setSmallIcon(android.R.drawable.ic_menu_info_details)
.setContentTitle("子供の置き去りをしていませんか?")//通知のタイトル
.setContentText("Bluetoothと車の切断から5分が経過しました")//通知の本文