编译V8
authorsnickersun <scy@incartech.cn>
Mon, 23 Mar 2020 16:15:53 +0000 (00:15 +0800)
committersnickersun <scy@incartech.cn>
Mon, 23 Mar 2020 16:15:53 +0000 (00:15 +0800)
给GPS测试窗口成功失败添加绿色和红色高亮

app/release/FactoryMode_V8_202003240014_release.apk [new file with mode: 0644]
app/src/main/java/mobile/miki/GPSActivity.java
app/version_code.properties

diff --git a/app/release/FactoryMode_V8_202003240014_release.apk b/app/release/FactoryMode_V8_202003240014_release.apk
new file mode 100644 (file)
index 0000000..84ec722
Binary files /dev/null and b/app/release/FactoryMode_V8_202003240014_release.apk differ
index 4e4579a..86693e7 100644 (file)
@@ -211,6 +211,13 @@ public class GPSActivity extends BaseActivity  {
             String locationTime=new StringBuilder().append(gps_status_show.search_time_cost).append("秒").toString();\r
             String hdop=new StringBuilder().append(String.valueOf(gps_status_show.hdop)).append("米").toString();\r
             mFix.setText(fixed);\r
+            if (mFix.getText().toString().contains("notFixed")){\r
+                mFix.setBackgroundColor(Color.RED);\r
+                mFix.setTextColor(Color.WHITE);\r
+            }else{\r
+                mFix.setBackgroundColor(Color.GREEN);\r
+                mFix.setTextColor(Color.BLACK);\r
+            }\r
             mStar.setText(satlites);\r
             mHoop.setText(hdop);\r
             mSearchCount.setText(locationTime);\r
index 9ac0e3e..d3805e8 100644 (file)
@@ -1,2 +1,2 @@
-#Thu Mar 19 12:09:12 CST 2020\r
-VERSION_CODE=7\r
+#Tue Mar 24 00:14:29 CST 2020\r
+VERSION_CODE=8\r