add refresh button to mqtt peers dialog

This commit is contained in:
Eric House 2024-02-06 18:29:21 -08:00
parent fac2eca5b2
commit 2ebdcd6433
2 changed files with 7 additions and 0 deletions

View file

@ -427,6 +427,12 @@ public class BoardDelegate extends DelegateBase
.setTitle( R.string.menu_about_peers )
.setView( psv )
.setPositiveButton( android.R.string.ok, null )
.setNegativeButton( R.string.button_refresh, new OnClickListener() {
@Override
public void onClick( DialogInterface dlg, int bttn ) {
showDialogFragment( DlgID.MQTT_PEERS );
}
} )
.create();
}
break;

View file

@ -7,5 +7,6 @@
<string name="peers_info_pending">Querying server…</string>
<string name="no_peers_info">Peers information not available</string>
<string name="button_refresh">Refresh</string>
</resources>