Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
C
clean master
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
clean master
Commits
65c502d8
Commit
65c502d8
authored
May 16, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除无用activity
parent
2f3c5cd4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
207 additions
and
5 deletions
+207
-5
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+4
-0
VirusActivity.kt
app/src/main/java/com/zxhyis/toolss/ui/page/VirusActivity.kt
+0
-5
VirusAppActivity.kt
...c/main/java/com/zxhyis/toolss/ui/page/VirusAppActivity.kt
+73
-0
del.png
app/src/main/res/drawable-xxhdpi/del.png
+0
-0
activity_layout_virusapp.xml
app/src/main/res/layout/activity_layout_virusapp.xml
+66
-0
item_layout_risk_app.xml
app/src/main/res/layout/item_layout_risk_app.xml
+64
-0
No files found.
app/src/main/AndroidManifest.xml
View file @
65c502d8
...
...
@@ -182,6 +182,10 @@
android:name=
".ui.page.VirusActivity"
android:screenOrientation=
"portrait"
tools:ignore=
"DiscouragedApi,LockedOrientationActivity"
/>
<activity
android:name=
".ui.page.VirusAppActivity"
android:screenOrientation=
"portrait"
tools:ignore=
"DiscouragedApi,LockedOrientationActivity"
/>
<activity
android:name=
".ui.page.PrepareScanActivity"
android:screenOrientation=
"portrait"
...
...
app/src/main/java/com/zxhyis/toolss/ui/page/VirusActivity.kt
View file @
65c502d8
...
...
@@ -184,11 +184,6 @@ class VirusActivity : TopActivity<ActivityLayoutVirusBinding>() {
}
else
{
startActivity
<
ResultActivity
>(
"from"
to
AFunOb
.
Antivirus
)
finish
()
// RelsutActivity.launch(
// this@AntivirusActivity,
// title = RelsutActivity.type_antivirus
// )
}
}
...
...
app/src/main/java/com/zxhyis/toolss/ui/page/VirusAppActivity.kt
0 → 100644
View file @
65c502d8
package
com.zxhyis.toolss.ui.page
import
android.graphics.Color
import
android.view.LayoutInflater
import
android.view.ViewGroup
import
android.widget.ImageView
import
android.widget.TextView
import
androidx.activity.OnBackPressedCallback
import
androidx.core.view.updatePadding
import
androidx.recyclerview.widget.LinearLayoutManager
import
androidx.recyclerview.widget.RecyclerView
import
com.blankj.utilcode.util.AppUtils
import
com.blankj.utilcode.util.BarUtils
import
com.trustlook.sdk.data.AppInfo
import
com.zxhyis.toolss.R
import
com.zxhyis.toolss.ad.AdmobUtils
import
com.zxhyis.toolss.ad.ConfigHelper
import
com.zxhyis.toolss.base.TopActivity
import
com.zxhyis.toolss.databinding.ActivityLayoutVirusappBinding
class
VirusAppActivity
:
TopActivity
<
ActivityLayoutVirusappBinding
>()
{
override
fun
getViewBinding1
():
ActivityLayoutVirusappBinding
{
return
ActivityLayoutVirusappBinding
.
inflate
(
layoutInflater
)
}
private
val
appList
=
mutableListOf
<
AppInfo
>()
override
fun
init
()
{
BarUtils
.
setStatusBarColor
(
this
,
Color
.
TRANSPARENT
)
vb
.
root
.
updatePadding
(
top
=
BarUtils
.
getStatusBarHeight
())
vb
.
idYdBack
.
setOnClickListener
{
onBackPressedDispatcher
.
onBackPressed
()
}
onBackPressedDispatcher
.
addCallback
(
object
:
OnBackPressedCallback
(
true
)
{
override
fun
handleOnBackPressed
()
{
finishToMain
()
}
})
ConfigHelper
.
riskAppList
?.
let
{
appList
.
addAll
(
it
)
}
vb
.
idTvRisks
.
text
=
"${appList.size} application is a security risk"
vb
.
idRlApp
.
run
{
layoutManager
=
LinearLayoutManager
(
context
)
adapter
=
object
:
RecyclerView
.
Adapter
<
RecyclerView
.
ViewHolder
>()
{
override
fun
onCreateViewHolder
(
parent
:
ViewGroup
,
viewType
:
Int
):
RecyclerView
.
ViewHolder
{
val
view
=
LayoutInflater
.
from
(
parent
.
context
)
.
inflate
(
R
.
layout
.
item_layout_risk_app
,
parent
,
false
)
return
object
:
RecyclerView
.
ViewHolder
(
view
)
{}
}
override
fun
getItemCount
()
=
appList
.
size
override
fun
onBindViewHolder
(
holder
:
RecyclerView
.
ViewHolder
,
position
:
Int
)
{
holder
.
itemView
.
run
{
val
c
=
ConfigHelper
.
appList
?.
firstOrNull
{
it
.
packageName
==
appList
[
position
].
packageName
}
findViewById
<
ImageView
>(
R
.
id
.
id_app_icon
).
setImageDrawable
(
c
?.
icon
)
findViewById
<
TextView
>(
R
.
id
.
id_app_name
).
text
=
appList
[
position
].
appName
holder
.
itemView
.
setOnClickListener
{
AdmobUtils
.
showInterstitialAd
(
this
@VirusAppActivity
)
{
AppUtils
.
launchAppDetailsSettings
(
appList
[
position
].
packageName
)
}
}
}
}
}
}
}
}
\ No newline at end of file
app/src/main/res/drawable-xxhdpi/del.png
View replaced file @
2f3c5cd4
View file @
65c502d8
6.99 KB
|
W:
|
H:
6.02 KB
|
W:
|
H:
2-up
Swipe
Onion skin
app/src/main/res/layout/activity_layout_virusapp.xml
0 → 100644
View file @
65c502d8
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#03AFFF"
android:orientation=
"vertical"
>
<RelativeLayout
android:id=
"@+id/id_rl_top"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"17dp"
app:layout_constraintTop_toTopOf=
"parent"
>
<androidx.appcompat.widget.AppCompatImageView
android:id=
"@+id/id_yd_back"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:paddingHorizontal=
"11dp"
android:src=
"@drawable/iv_return"
android:tint=
"@color/white"
/>
<TextView
android:id=
"@+id/id_back"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:text=
"Virus Scan"
android:textColor=
"@color/white"
android:textSize=
"18sp"
android:textStyle=
"bold"
/>
</RelativeLayout>
<androidx.appcompat.widget.AppCompatImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"42dp"
android:layout_marginBottom=
"44dp"
android:src=
"@mipmap/saomiao_icon"
/>
<TextView
android:id=
"@+id/id_tv_risks"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginBottom=
"38dp"
android:textColor=
"@color/white"
android:textSize=
"14sp"
tools:text=
"2 application is a security risk"
/>
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_marginTop=
"16dp"
android:layout_weight=
"1"
android:background=
"@color/white"
>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/id_rl_app"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
</FrameLayout>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/item_layout_risk_app.xml
0 → 100644
View file @
65c502d8
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginHorizontal=
"15dp"
android:layout_marginVertical=
"9dp"
android:orientation=
"vertical"
>
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
>
<androidx.cardview.widget.CardView
android:layout_width=
"48dp"
android:layout_height=
"48dp"
app:cardCornerRadius=
"7dp"
>
<androidx.appcompat.widget.AppCompatImageView
android:id=
"@+id/id_app_icon"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
</androidx.cardview.widget.CardView>
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginHorizontal=
"11dp"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/id_app_name"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:ellipsize=
"end"
android:includeFontPadding=
"false"
android:lines=
"1"
android:textColor=
"#000000"
android:textSize=
"15sp"
tools:text=
"Clean Junk"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"7dp"
android:includeFontPadding=
"false"
android:text=
"risk"
android:textColor=
"#FCAD45"
android:textSize=
"12sp"
/>
</androidx.appcompat.widget.LinearLayoutCompat>
<androidx.appcompat.widget.AppCompatImageView
android:id=
"@+id/id_sc"
android:layout_width=
"30dp"
android:layout_height=
"30dp"
android:src=
"@drawable/del"
/>
</androidx.appcompat.widget.LinearLayoutCompat>
</LinearLayout>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment