TestServiceの全体的なリファクタリング #28
| 
						 | 
					@ -72,8 +72,7 @@ public class TestService extends Service {
 | 
				
			||||||
            Log.d("onResume", "ID not initialized.");
 | 
					            Log.d("onResume", "ID not initialized.");
 | 
				
			||||||
            return flags; // IDが初期化されていない場合は何もしない
 | 
					            return flags; // IDが初期化されていない場合は何もしない
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            mDocRef = FirebaseFirestore.getInstance().document("status/" + this.userId);//現在の位置を取得
 | 
					            setSnapshotListener(FirebaseFirestore.getInstance().document("status/" + this.userId));
 | 
				
			||||||
            setSnapshotListener(mDocRef);//現在の位置を引数に initNotification()を処理
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (isNotBluetoothGranted()) return flags;
 | 
					        if (isNotBluetoothGranted()) return flags;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user