Browse Source

1.移除无用代码

20241218TB223FC(测试jar包)
wangwanlei 6 months ago
parent
commit
cdeeaee2f1

+ 0
- 10
app/src/main/AndroidManifest.xml View File

@@ -89,16 +89,6 @@
89 89
             android:launchMode="singleTask"
90 90
             android:screenOrientation="landscape"
91 91
             android:windowSoftInputMode="adjustResize" />
92
-
93
-        <receiver
94
-            android:name="com.xhly.manageapp.broadcastreceiver.XhlyBroadCastReceiver"
95
-            android:enabled="true"
96
-            android:exported="true">
97
-            <intent-filter>
98
-                <!-- <action android:name="com.linspirer.edu.loginapkfinish" /-->
99
-                <action android:name="test" />
100
-            </intent-filter>
101
-        </receiver>
102 92
         <receiver
103 93
             android:name="com.xhly.manageapp.broadcastreceiver.USBReceiver"
104 94
             android:enabled="true"

+ 0
- 20
app/src/main/java/com/xhly/manageapp/broadcastreceiver/XhlyBroadCastReceiver.kt View File

@@ -1,20 +0,0 @@
1
-package com.xhly.manageapp.broadcastreceiver
2
-
3
-import android.content.BroadcastReceiver
4
-import android.content.Context
5
-import android.content.Intent
6
-import android.util.Log
7
-import com.xhly.corelib.utils.AppUtils
8
-
9
-class XhlyBroadCastReceiver : BroadcastReceiver() {
10
-    override fun onReceive(context: Context?, intent: Intent?) {
11
-        Log.i("收到广播", "这是finish广播")
12
-        val getAppList1 = AppUtils.GetAppList(context)
13
-        getAppList1?.forEach {
14
-            if (it.packageName.equals("com.xhly.easystud")) {
15
-                it.intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
16
-                context?.startActivity(it.intent)
17
-            }
18
-        }
19
-    }
20
-}

+ 433
- 390
app/src/main/java/com/xhly/manageapp/ui/main/activity/MainActivity.kt
File diff suppressed because it is too large
View File


Loading…
Cancel
Save