Skip to content

Commit 6863317

Browse files
authored
feat: support tcp protocol on android (#903)
1 parent 2b83a73 commit 6863317

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: ui/flutter/lib/app/modules/setting/views/setting_view.dart

+3-2
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ class SettingView extends GetView<SettingController> {
762762
width: 80,
763763
child: DropdownButtonFormField<String>(
764764
value: startCfg.value.network,
765-
onChanged: Util.isDesktop()
765+
onChanged: Util.isDesktop() || Util.isAndroid()
766766
? (value) async {
767767
startCfg.update((val) {
768768
val!.network = value!;
@@ -786,7 +786,8 @@ class SettingView extends GetView<SettingController> {
786786
),
787787
)
788788
];
789-
if (Util.isDesktop() && startCfg.value.network == 'tcp') {
789+
if ((Util.isDesktop() || Util.isAndroid()) &&
790+
startCfg.value.network == 'tcp') {
790791
final arr = startCfg.value.address.split(':');
791792
var ip = '127.0.0.1';
792793
var port = '0';

0 commit comments

Comments
 (0)