|
|
|
@ -184,7 +184,11 @@ public class MainActivity extends AppCompatActivity {
|
|
|
|
|
Log.d(TAG, "MainActivity: reboot=" + rebootFlag + " noDelay=" + noDelay);
|
|
|
|
|
|
|
|
|
|
MicroPhotoContext.AppConfig appConfig = getAppConfig();
|
|
|
|
|
binding.cmdid.setText(appConfig.cmdid);
|
|
|
|
|
if (TextUtils.isEmpty(appConfig.cmdid)) {
|
|
|
|
|
binding.cmdid.setText(MicroPhotoService.getSerialNumber());
|
|
|
|
|
} else {
|
|
|
|
|
binding.cmdid.setText(appConfig.cmdid);
|
|
|
|
|
}
|
|
|
|
|
binding.server.setText(appConfig.server);
|
|
|
|
|
binding.port.setText(appConfig.port != 0 ? Integer.toString(appConfig.port) : "");
|
|
|
|
|
String protocolStr = appConfig.protocol + "-";
|
|
|
|
|