Improve "Configure URLs" screen to show current values in case someone is already defined

This commit is contained in:
juancarmore 2024-08-14 11:17:16 +02:00
parent cf5ec24b14
commit c7e2eeb3a6
2 changed files with 5 additions and 2 deletions

View File

@ -13,6 +13,9 @@ class ConfigureUrlsActivity : AppCompatActivity() {
binding = ActivityConfigureUrlsBinding.inflate(layoutInflater) binding = ActivityConfigureUrlsBinding.inflate(layoutInflater)
setContentView(binding.root) setContentView(binding.root)
binding.serverUrl.setText(Urls.applicationServerUrl)
binding.livekitUrl.setText(Urls.livekitUrl)
binding.saveButton.setOnClickListener { binding.saveButton.setOnClickListener {
onSaveUrls() onSaveUrls()
} }

View File

@ -71,8 +71,8 @@ export class AppComponent implements OnDestroy {
}); });
urlsForm = new FormGroup({ urlsForm = new FormGroup({
serverUrl: new FormControl('', Validators.required), serverUrl: new FormControl(APPLICATION_SERVER_URL, Validators.required),
livekitUrl: new FormControl('', Validators.required), livekitUrl: new FormControl(LIVEKIT_URL, Validators.required),
}); });
room = signal<Room | undefined>(undefined); room = signal<Room | undefined>(undefined);