Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
石璀亮
/
turingos
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 46382427
authored
Aug 19, 2019
by
cuiliang.shi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打开应用 - 抖音 天气 label 修改。
1 parent
d89057be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
app/src/main/java/com/toscl/turingos/util/SkillsSlotUtil.java
app/src/main/java/com/toscl/turingos/util/SkillsSlotUtil.java
View file @
4638242
...
...
@@ -123,11 +123,21 @@ public class SkillsSlotUtil {
return
appMap
;
}
// 构造一个AppInfo对象,并赋值
private
static
AppInfo
getAppInfo
(
ApplicationInfo
app
,
Context
context
)
{
AppInfo
appInfo
=
new
AppInfo
();
PackageManager
pm
=
context
.
getPackageManager
();
appInfo
.
setAppLabel
((
String
)
app
.
loadLabel
(
pm
));
String
label
=
(
String
)
app
.
loadLabel
(
pm
);
switch
(
app
.
packageName
){
case
"com.icoolme.android.weather"
:
label
=
"天气"
;
break
;
case
"com.ss.android.ugc.aweme"
:
label
=
"抖音"
;
break
;
default
:
break
;
}
appInfo
.
setAppLabel
(
label
);
appInfo
.
setAppIcon
(
app
.
loadIcon
(
pm
));
appInfo
.
setPkgName
(
app
.
packageName
);
return
appInfo
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment