Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
MobileManager
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Wang Xu
MobileManager
Commits
26dc791d
Commit
26dc791d
authored
Mar 20, 2020
by
Baoxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 禁止Hotseat上指定应用拖动
parent
45dd7ec8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
Launcher.java
Launcher3/src/com/android/launcher3/Launcher.java
+6
-2
build.gradle
lib_common/build.gradle
+1
-1
No files found.
Launcher3/src/com/android/launcher3/Launcher.java
View file @
26dc791d
...
@@ -3219,6 +3219,11 @@ public class Launcher extends BaseActivity
...
@@ -3219,6 +3219,11 @@ public class Launcher extends BaseActivity
mWorkspace
.
performHapticFeedback
(
HapticFeedbackConstants
.
LONG_PRESS
,
mWorkspace
.
performHapticFeedback
(
HapticFeedbackConstants
.
LONG_PRESS
,
HapticFeedbackConstants
.
FLAG_IGNORE_VIEW_SETTING
);
HapticFeedbackConstants
.
FLAG_IGNORE_VIEW_SETTING
);
}
else
{
}
else
{
// 判断当前是否是Hotseat按钮,并且为指定应用
boolean
isHotseatButten
=
longClickCellInfo
.
container
!=
-
100
;
if
(
isHotseatButten
&&
v
.
getTag
()
instanceof
ItemInfo
&&
TextUtils
.
equals
(((
ItemInfo
)
v
.
getTag
()).
title
,
getString
(
R
.
string
.
app_name
)))
{
return
false
;
}
final
boolean
isAllAppsButton
=
final
boolean
isAllAppsButton
=
!
FeatureFlags
.
NO_ALL_APPS_ICON
&&
isHotseatLayout
(
v
)
&&
!
FeatureFlags
.
NO_ALL_APPS_ICON
&&
isHotseatLayout
(
v
)
&&
mDeviceProfile
.
inv
.
isAllAppsButtonRank
(
mHotseat
.
getOrderInHotseat
(
mDeviceProfile
.
inv
.
isAllAppsButtonRank
(
mHotseat
.
getOrderInHotseat
(
...
@@ -3233,8 +3238,7 @@ public class Launcher extends BaseActivity
...
@@ -3233,8 +3238,7 @@ public class Launcher extends BaseActivity
}
}
boolean
isHotseatLayout
(
View
layout
)
{
boolean
isHotseatLayout
(
View
layout
)
{
// TODO: Remove this method
return
mHotseat
!=
null
&&
return
mHotseat
!=
null
&&
layout
!=
null
&&
(
layout
instanceof
CellLayout
)
&&
(
layout
==
mHotseat
.
getLayout
());
(
layout
instanceof
CellLayout
)
&&
(
layout
==
mHotseat
.
getLayout
());
}
}
...
...
lib_common/build.gradle
View file @
26dc791d
...
@@ -28,7 +28,7 @@ android {
...
@@ -28,7 +28,7 @@ android {
// 公司编号
// 公司编号
buildConfigField
"String"
,
"COMPANY_ID"
,
"\"1\""
buildConfigField
"String"
,
"COMPANY_ID"
,
"\"1\""
// 更新名称
// 更新名称
buildConfigField
"String"
,
"UPDATE_FLAG"
,
"\"eduspace_
demo
\""
buildConfigField
"String"
,
"UPDATE_FLAG"
,
"\"eduspace_
tk
\""
// 是否自动更新
// 是否自动更新
buildConfigField
"boolean"
,
"AUTO_UPDATE"
,
"true"
buildConfigField
"boolean"
,
"AUTO_UPDATE"
,
"true"
}
}
...
...
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