Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
swiftcleanerphonehelper
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
swiftcleanerphonehelper
Commits
03e43d2c
Commit
03e43d2c
authored
Dec 23, 2024
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
712fe09c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
AppInfoAdapter.java
.../com/swiftcleaner/chovey/view/adapter/AppInfoAdapter.java
+8
-1
No files found.
app/src/main/java/com/swiftcleaner/chovey/view/adapter/AppInfoAdapter.java
View file @
03e43d2c
package
com
.
swiftcleaner
.
chovey
.
view
.
adapter
;
import
android.app.Activity
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.net.Uri
;
...
...
@@ -48,8 +49,14 @@ public class AppInfoAdapter extends RecyclerView.Adapter<AppInfoAdapter.AppInfoV
// 卸载应用
Intent
intentUninstall
=
new
Intent
(
Intent
.
ACTION_DELETE
);
intentUninstall
.
setData
(
Uri
.
parse
(
"package:"
+
appInfoBean
.
getPackageName
()));
context
.
startActivity
(
intentUninstall
);
if
(
context
instanceof
Activity
)
{
((
Activity
)
context
).
startActivity
(
intentUninstall
);
}
else
{
intentUninstall
.
addFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
context
.
startActivity
(
intentUninstall
);
}
notifyDataSetChanged
();
});
Glide
.
with
(
context
)
.
load
(
appInfoBean
.
getAppIcon
())
...
...
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