mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-06 07:56:07 +00:00
Use LiStringifyPortFlags() instead of coding it ourselves
This commit is contained in:
@@ -101,11 +101,7 @@ public class ServerHelper {
|
||||
}
|
||||
else {
|
||||
dialogSummary = parent.getResources().getString(R.string.nettest_text_failure);
|
||||
for (int i = 0; i < 32; i++) {
|
||||
if ((ret & (1 << i)) != 0) {
|
||||
dialogSummary += MoonBridge.getProtocolFromPortFlagIndex(i) + " " + MoonBridge.getPortFromPortFlagIndex(i) + "\n";
|
||||
}
|
||||
}
|
||||
dialogSummary += MoonBridge.stringifyPortFlags(ret, "\n");
|
||||
}
|
||||
|
||||
Dialog.displayDialog(parent,
|
||||
|
||||
Reference in New Issue
Block a user