small fixes to Launcher
- more robust unshrink animation - catching a resource not found exception when making widget preview - added more missing copyright headers - hiding customization drawer when long press on widget - long-pressing on widget is temporarily always springloaded to zoom in to workspace screen Change-Id: I6c92877357e907d89840fecc4662f0700b96255b
This commit is contained in:
1 parent
e029ea7efc
commit
4bb4f735c8
7 files changed
+58
-17
No files matched your search
@@ -1171,7 +1171,6 @@ public class Workspace extends ViewGroup
|
||||
|
||||
public void unshrink() {
|
||||
if (mIsSmall) {
|
||||
final int screenWidth = getWidth();
|
||||
Sequencer s = new Sequencer();
|
||||
final int screenCount = getChildCount();
|
||||
for (int i = 0; i < screenCount; i++) {
|
||||
@@ -1179,8 +1178,8 @@ public class Workspace extends ViewGroup
|
||||
final int duration =
|
||||
getResources().getInteger(R.integer.config_workspaceUnshrinkTime);
|
||||
s.playTogether(
|
||||
new PropertyAnimator(duration, cl, "x", (float) screenWidth * i),
|
||||
new PropertyAnimator(duration, cl, "y", 0.0f),
|
||||
new PropertyAnimator(duration, cl, "translationX", 0.0f),
|
||||
new PropertyAnimator(duration, cl, "translationY", 0.0f),
|
||||
new PropertyAnimator(duration, cl, "scaleX", 1.0f),
|
||||
new PropertyAnimator(duration, cl, "scaleY", cl.getScaleY(), 1.0f),
|
||||
new PropertyAnimator(duration, cl, "dimmedBitmapAlpha", 0.0f));
|
||||
|
||||
Reference in new issue
Block a user