changessituationを廃止

This commit is contained in:
r-ca committed 2024-01-19 20:35:08 +09:00
1 parent 3b73621fb9
commit 36e558a88b
1 file changed
-10
@@ -300,16 +300,6 @@ public class MainActivity extends AppCompatActivity {
} }
public void changessituation() {//乗降状態の管理をするためにHomeFramgentを呼び出すメソッド
SharedPreferences sharedPreferences = getSharedPreferences("app_situation", MODE_PRIVATE);
//共有プリファレンス 書き込みの準備
SharedPreferences.Editor E = sharedPreferences.edit();
Fragment fragment = getSupportFragmentManager().findFragmentById(R.id.fragmentContainerView);
Boolean isInCar = sharedPreferences.getBoolean("isInCarPref", false);//現在の乗降状態を保存する共有プリファレンス
((HomeFragment) fragment).onEvent(!isInCar);
}
// @Override // @Override
// public void onStop() {//アプリをバックグラウンドにした時のメソッド // public void onStop() {//アプリをバックグラウンドにした時のメソッド
// super.onStop(); // super.onStop();