From 11409771024381e06173490d846bf121e6a19552 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期四, 15 一月 2026 21:29:05 +0800
Subject: [PATCH] 2026年01月15日21:29:00

---
 app/src/main/java/com/hdl/photovoltaic/ui/account/RegisterAccountActivity.java |   54 ++++++++++++++++++++++++++++++++++++------------------
 1 files changed, 36 insertions(+), 18 deletions(-)

diff --git a/app/src/main/java/com/hdl/photovoltaic/ui/account/RegisterAccountActivity.java b/app/src/main/java/com/hdl/photovoltaic/ui/account/RegisterAccountActivity.java
index dd7cbb6..ad3ec6a 100644
--- a/app/src/main/java/com/hdl/photovoltaic/ui/account/RegisterAccountActivity.java
+++ b/app/src/main/java/com/hdl/photovoltaic/ui/account/RegisterAccountActivity.java
@@ -111,26 +111,44 @@
             viewBinding.regionAccountNumberTv.setText("+964");
         }
         switchPhoneOrEmailStyleView();
-        try {
-            Country.load(this);
-            Country country = null;
-            if (TextUtils.isEmpty(GPSManagerUtils.getInstance().getCountryCode(this))) {
-                //鍐嶆牴鎹郴缁熻瑷�
-                country = Country.getCountryInfo();
-            } else {
-                //鍏堟牴鎹畾浣�
-                country = Country.getLocationCountryInfo(GPSManagerUtils.getInstance().getCountryCode(this));
-            }
-            if (country != null) {
-                viewBinding.regionAccountTv.setText(country.translate);
-                viewBinding.regionAccountNumberTv.setText("+" + country.code);
-            }
-        } catch (Exception e) {
-            e.printStackTrace();
-        }
+
+
+        new Thread(
+                new Runnable() {
+                    @Override
+                    public void run() {
+                        try {
+                            final Country[] country = new Country[1];
+                            Country.load(RegisterAccountActivity.this);
+                            if (TextUtils.isEmpty(GPSManagerUtils.getInstance().getCountryCode(RegisterAccountActivity.this))) {
+                                //鍐嶆牴鎹郴缁熻瑷�
+                                country[0] = Country.getCountryInfo();
+                            } else {
+                                //鍏堟牴鎹畾浣�
+                                country[0] = Country.getLocationCountryInfo(GPSManagerUtils.getInstance().getCountryCode(RegisterAccountActivity.this));
+                            }
+                            runOnUiThread(new Runnable() {
+                                @Override
+                                public void run() {
+                                    if (country != null) {
+                                        viewBinding.regionAccountTv.setText(country[0].translate);
+                                        viewBinding.regionAccountNumberTv.setText("+" + country[0].code);
+                                    }
+                                }
+                            });
+                        } catch (Exception e) {
+                            e.printStackTrace();
+                        }
+                    }
+                }
+        ).start();
+
+
         HdlCommonLogic.getInstance().setSpan(viewBinding.registerPhoneVerificationTv, viewBinding.registerPhoneVerificationTv.getText().toString(), true, null);
         HdlCommonLogic.getInstance().setSpan(viewBinding.registerMailVerificationTv, viewBinding.registerMailVerificationTv.getText().toString(), true, null);
-
+        if (UserConfigManage.getInstance().isArabicLanguage()) {
+            viewBinding.registerBackTv.setRotation(180); // 鏃嬭浆180搴�
+        }
 
     }
 

--
Gitblit v1.8.0