Browse Source

1.默认隐藏学校和班级。

2.增加版本显示。
20241218TB223FC(测试jar包)
wangwanlei 10 months ago
parent
commit
74785df872

+ 2
- 3
app/src/main/java/com/xhly/manageapp/ui/main/activity/MainActivity.kt View File

577
         updatePadInfo()
577
         updatePadInfo()
578
         updateMcApp()
578
         updateMcApp()
579
         getLocation()
579
         getLocation()
580
+        val appVersionCode = SystemUtil.getAppVersionCode(this, packageName)
581
+        mBinding.versionTv.text="v${appVersionCode}"
580
     }
582
     }
581
 
583
 
582
     private fun updateAllStrategy() {
584
     private fun updateAllStrategy() {
793
         schoolDeviceSetBean?.let { bean ->
795
         schoolDeviceSetBean?.let { bean ->
794
             //是否启用截屏:1是0否
796
             //是否启用截屏:1是0否
795
             ManageApplication.enableCaptureScreen(schoolDeviceSetBean.screenshots == 1)
797
             ManageApplication.enableCaptureScreen(schoolDeviceSetBean.screenshots == 1)
796
-            if (bean.forceBind == 1) {
797
-                //TODO 设备端如何操作
798
-            }
799
             if (bean.schoolClass == 1) {
798
             if (bean.schoolClass == 1) {
800
                 mBinding.userschoolTv.visibility = View.VISIBLE
799
                 mBinding.userschoolTv.visibility = View.VISIBLE
801
             } else {
800
             } else {

+ 11
- 0
app/src/main/res/layout/activity_main.xml View File

73
                 android:layout_marginLeft="21dp"
73
                 android:layout_marginLeft="21dp"
74
                 android:layout_marginRight="21dp"
74
                 android:layout_marginRight="21dp"
75
                 android:textColor="#798CB5"
75
                 android:textColor="#798CB5"
76
+                android:visibility="invisible"
76
                 android:textSize="15sp" />
77
                 android:textSize="15sp" />
77
 
78
 
78
             <androidx.recyclerview.widget.RecyclerView
79
             <androidx.recyclerview.widget.RecyclerView
143
                 android:textSize="17sp" />
144
                 android:textSize="17sp" />
144
         </LinearLayout>
145
         </LinearLayout>
145
 
146
 
147
+        <TextView
148
+            android:id="@+id/version_tv"
149
+            android:layout_width="wrap_content"
150
+            android:layout_height="wrap_content"
151
+            android:layout_gravity="bottom|left"
152
+            android:layout_marginLeft="10dp"
153
+            android:layout_marginBottom="10dp"
154
+            android:textColor="#798CB5"
155
+            android:textSize="8sp" />
156
+
146
         <LinearLayout
157
         <LinearLayout
147
             android:id="@+id/netset_llayout"
158
             android:id="@+id/netset_llayout"
148
             android:layout_width="wrap_content"
159
             android:layout_width="wrap_content"

Loading…
Cancel
Save