mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-10-11 13:33:53 -04:00
add confirmation dialog for firmware update
This commit is contained in:
1 parent
1f177dc63e
commit
5dc55b52f6
1 file changed
+8
-1
@@ -659,7 +659,14 @@ class SettingsFragment : ScreenFragment("Settings"), Logging {
|
||||
}
|
||||
|
||||
binding.updateFirmwareButton.setOnClickListener {
|
||||
doFirmwareUpdate()
|
||||
MaterialAlertDialogBuilder(requireContext())
|
||||
.setMessage("${getString(R.string.update_firmware)}?")
|
||||
.setNeutralButton(R.string.cancel) { _, _ ->
|
||||
}
|
||||
.setPositiveButton(getString(R.string.okay)) { _, _ ->
|
||||
doFirmwareUpdate()
|
||||
}
|
||||
.show()
|
||||
}
|
||||
|
||||
binding.usernameEditText.on(EditorInfo.IME_ACTION_DONE) {
|
||||
|
||||
Reference in new issue
Block a user