From 496c3fe934af2846531f7db25e860dba7a636edd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Thu, 11 Jul 2024 16:03:54 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B9=E3=82=B3=E3=83=BC=E3=83=97=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/example/childguard/TestService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/example/childguard/TestService.java b/app/src/main/java/com/example/childguard/TestService.java index 926410c..9a82289 100644 --- a/app/src/main/java/com/example/childguard/TestService.java +++ b/app/src/main/java/com/example/childguard/TestService.java @@ -139,7 +139,7 @@ public class TestService extends Service { * ブロードキャストレシーバーを登録 * @param receiver ブロードキャストレシーバー */ - public void registerReceiver(BroadcastReceiver receiver) { + private void registerReceiver(BroadcastReceiver receiver) { IntentFilter intentFilter = new IntentFilter(); intentFilter.addAction(BluetoothDevice.ACTION_ACL_CONNECTED); intentFilter.addAction(BluetoothDevice.ACTION_ACL_DISCONNECTED); @@ -195,7 +195,7 @@ public class TestService extends Service { /** * 通報フラグをリセットする */ - public void resetReported() { + private void resetReported() { db = FirebaseFirestore.getInstance();//Firebaseとの紐づけ DocumentReference isReported = db.collection("status").document(this.userId); //isReportedをfalseに更新 @@ -230,7 +230,7 @@ public class TestService extends Service { * @param context コンテキスト * @param content NotificationContent 通知内容 */ - public void sendNotification(Context context, NotificationContent content) {//通知を行うメソッド + private void sendNotification(Context context, NotificationContent content) {//通知を行うメソッド // 権限の保有を確認 if (isNotNotificationEnabled()) return;