実装修正

This commit is contained in:
ろむねこ 2024-01-22 18:14:11 +09:00
parent a5fa89252c
commit 1ceb3e29b7
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -3,6 +3,7 @@ package one.nem.lacerta;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar; import androidx.appcompat.widget.Toolbar;
import androidx.core.content.ContextCompat; import androidx.core.content.ContextCompat;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager; import androidx.fragment.app.FragmentManager;
import androidx.navigation.NavController; import androidx.navigation.NavController;
import androidx.navigation.fragment.NavHostFragment; import androidx.navigation.fragment.NavHostFragment;
@ -89,20 +90,7 @@ public class MainActivity extends AppCompatActivity {
} }
}); });
Toolbar toolbar = findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
} }
// Public
public void setActionBarTitle(String title) {
getSupportActionBar().setTitle(title);
}
public void setActionBarBackButton(boolean isEnabled) {
getSupportActionBar().setDisplayHomeAsUpEnabled(isEnabled);
}
private void initializeApp() { private void initializeApp() {
Log.d("Init", "Initializing app"); Log.d("Init", "Initializing app");
// Set feature switch override to default value // Set feature switch override to default value