Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
packages_apps_Launcher2
Commits
44fbf9de
Commit
44fbf9de
authored
13 years ago
by
Adam Cohen
Committed by
Android (Google) Code Review
13 years ago
Browse files
Options
Download
Plain Diff
Merge "Fixing stutter in AllApps transition" into ics-mr0
parents
dc091f5d
b64d36e6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
8 deletions
+13
-8
res/values/config.xml
res/values/config.xml
+2
-2
src/com/android/launcher2/AppsCustomizePagedView.java
src/com/android/launcher2/AppsCustomizePagedView.java
+8
-2
src/com/android/launcher2/Launcher.java
src/com/android/launcher2/Launcher.java
+1
-2
src/com/android/launcher2/Workspace.java
src/com/android/launcher2/Workspace.java
+2
-2
No files found.
res/values/config.xml
View file @
44fbf9de
...
...
@@ -23,8 +23,8 @@
<!-- Fade/zoom in/out duration & scale in the AllApps transition.
Note: This should be less than the workspaceShrinkTime as they happen together. -->
<integer
name=
"config_appsCustomizeZoomInTime"
>
70
0
</integer>
<integer
name=
"config_appsCustomizeZoomOutTime"
>
7
00
</integer>
<integer
name=
"config_appsCustomizeZoomInTime"
>
35
0
</integer>
<integer
name=
"config_appsCustomizeZoomOutTime"
>
6
00
</integer>
<integer
name=
"config_appsCustomizeZoomScaleFactor"
>
7
</integer>
<integer
name=
"config_appsCustomizeFadeInTime"
>
250
</integer>
<integer
name=
"config_appsCustomizeFadeOutTime"
>
200
</integer>
...
...
This diff is collapsed.
Click to expand it.
src/com/android/launcher2/AppsCustomizePagedView.java
View file @
44fbf9de
...
...
@@ -1360,8 +1360,14 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
@Override
public
void
reset
()
{
updateCurrentTab
(
0
);
invalidatePageData
(
0
);
AppsCustomizeTabHost
tabHost
=
getTabHost
();
String
tag
=
tabHost
.
getCurrentTabTag
();
if
(!
tag
.
equals
(
tabHost
.
getTabTagForContentType
(
ContentType
.
Applications
)))
{
tabHost
.
setCurrentTabFromContent
(
ContentType
.
Applications
);
}
if
(
mCurrentPage
!=
0
)
{
invalidatePageData
(
0
);
}
}
private
AppsCustomizeTabHost
getTabHost
()
{
...
...
This diff is collapsed.
Click to expand it.
src/com/android/launcher2/Launcher.java
View file @
44fbf9de
...
...
@@ -1209,7 +1209,7 @@ public final class Launcher extends Activity
}
// Reset AllApps to its initial state
if
(
mAppsCustomizeTabHost
!=
null
)
{
if
(
!
alreadyOnHome
&&
mAppsCustomizeTabHost
!=
null
)
{
mAppsCustomizeTabHost
.
reset
();
}
}
...
...
@@ -2187,7 +2187,6 @@ public final class Launcher extends Activity
// Shrink workspaces away if going to AppsCustomize from workspace
mWorkspace
.
changeState
(
Workspace
.
State
.
SMALL
,
animated
);
//hideHotseat(animated);
if
(
animated
)
{
final
ValueAnimator
scaleAnim
=
ValueAnimator
.
ofFloat
(
0
f
,
1
f
).
setDuration
(
duration
);
...
...
This diff is collapsed.
Click to expand it.
src/com/android/launcher2/Workspace.java
View file @
44fbf9de
...
...
@@ -1421,8 +1421,8 @@ public class Workspace extends SmoothPagedView
* ZInterpolator compounded with an ease-out.
*/
static
class
ZoomOutInterpolator
implements
TimeInterpolator
{
private
final
Z
Interpolator
zInterpolator
=
new
Z
Interpolator
(
0.
2
f
);
private
final
Decelerate
Interpolator
decelerate
=
new
Decelerate
Interpolator
(
1.8
f
);
private
final
Decelerate
Interpolator
decelerate
=
new
Decelerate
Interpolator
(
0.
75
f
);
private
final
Z
Interpolator
zInterpolator
=
new
Z
Interpolator
(
0.13
f
);
public
float
getInterpolation
(
float
input
)
{
return
decelerate
.
getInterpolation
(
zInterpolator
.
getInterpolation
(
input
));
...
...
This diff is collapsed.
Click to expand it.
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