Merge "Updating default workspace, fixing missing Browser icon. (5358657)" into ics-factoryrom
diff --git a/res/drawable-hdpi/hand.png b/res/drawable-hdpi/hand.png
index 4a73f2b..bd4f6df 100644
--- a/res/drawable-hdpi/hand.png
+++ b/res/drawable-hdpi/hand.png
Binary files differ
diff --git a/res/drawable-mdpi/hand.png b/res/drawable-mdpi/hand.png
index eb280e3..fe5a035 100644
--- a/res/drawable-mdpi/hand.png
+++ b/res/drawable-mdpi/hand.png
Binary files differ
diff --git a/res/drawable-xhdpi/hand.png b/res/drawable-xhdpi/hand.png
index aaaad37..35b678c 100644
--- a/res/drawable-xhdpi/hand.png
+++ b/res/drawable-xhdpi/hand.png
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_architecture.jpg b/res/drawable-xhdpi/wallpaper_architecture.jpg
new file mode 100644
index 0000000..c6ecb0d
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_architecture.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_architecture_small.jpg b/res/drawable-xhdpi/wallpaper_architecture_small.jpg
new file mode 100644
index 0000000..8a258e5
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_architecture_small.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_bubblegum.jpg b/res/drawable-xhdpi/wallpaper_bubblegum.jpg
new file mode 100644
index 0000000..a68c1c0
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_bubblegum.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_bubblegum_small.jpg b/res/drawable-xhdpi/wallpaper_bubblegum_small.jpg
new file mode 100644
index 0000000..a75c006
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_bubblegum_small.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_canyon.jpg b/res/drawable-xhdpi/wallpaper_canyon.jpg
new file mode 100644
index 0000000..7c3ff3a
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_canyon.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_canyon_small.jpg b/res/drawable-xhdpi/wallpaper_canyon_small.jpg
new file mode 100644
index 0000000..a29b9b8
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_canyon_small.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_chroma.jpg b/res/drawable-xhdpi/wallpaper_chroma.jpg
new file mode 100644
index 0000000..e400338
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_chroma.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_chroma_small.jpg b/res/drawable-xhdpi/wallpaper_chroma_small.jpg
new file mode 100644
index 0000000..7e8698c
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_chroma_small.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_escape.jpg b/res/drawable-xhdpi/wallpaper_escape.jpg
new file mode 100644
index 0000000..253ab5a
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_escape.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_escape_small.jpg b/res/drawable-xhdpi/wallpaper_escape_small.jpg
new file mode 100644
index 0000000..b506076
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_escape_small.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_fiber.jpg b/res/drawable-xhdpi/wallpaper_fiber.jpg
new file mode 100644
index 0000000..974a56c
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_fiber.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_fiber_small.jpg b/res/drawable-xhdpi/wallpaper_fiber_small.jpg
new file mode 100644
index 0000000..2406cce
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_fiber_small.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_fidelity.jpg b/res/drawable-xhdpi/wallpaper_fidelity.jpg
new file mode 100644
index 0000000..dd3be55
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_fidelity.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_fidelity_small.jpg b/res/drawable-xhdpi/wallpaper_fidelity_small.jpg
new file mode 100644
index 0000000..7cfd2f0
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_fidelity_small.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_flora.jpg b/res/drawable-xhdpi/wallpaper_flora.jpg
new file mode 100644
index 0000000..6fdada9
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_flora.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_flora_small.jpg b/res/drawable-xhdpi/wallpaper_flora_small.jpg
new file mode 100644
index 0000000..4564f4c
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_flora_small.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_kepler.jpg b/res/drawable-xhdpi/wallpaper_kepler.jpg
new file mode 100644
index 0000000..45ce15c
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_kepler.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_kepler_small.jpg b/res/drawable-xhdpi/wallpaper_kepler_small.jpg
new file mode 100644
index 0000000..9424fba
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_kepler_small.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_leaf.jpg b/res/drawable-xhdpi/wallpaper_leaf.jpg
new file mode 100644
index 0000000..9d77466
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_leaf.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_leaf_small.jpg b/res/drawable-xhdpi/wallpaper_leaf_small.jpg
new file mode 100644
index 0000000..00fe14a
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_leaf_small.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_nexuswallpaper1.png b/res/drawable-xhdpi/wallpaper_nexuswallpaper1.png
deleted file mode 100644
index d8124f8..0000000
--- a/res/drawable-xhdpi/wallpaper_nexuswallpaper1.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_noir.jpg b/res/drawable-xhdpi/wallpaper_noir.jpg
new file mode 100644
index 0000000..535eda8
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_noir.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_noir_small.jpg b/res/drawable-xhdpi/wallpaper_noir_small.jpg
new file mode 100644
index 0000000..7b1076b
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_noir_small.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_outofthebox.jpg b/res/drawable-xhdpi/wallpaper_outofthebox.jpg
new file mode 100644
index 0000000..f3ad2ee
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_outofthebox.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/wallpaper_outofthebox_small.jpg b/res/drawable-xhdpi/wallpaper_outofthebox_small.jpg
new file mode 100644
index 0000000..2fc85f5
--- /dev/null
+++ b/res/drawable-xhdpi/wallpaper_outofthebox_small.jpg
Binary files differ
diff --git a/res/layout-port/all_apps_cling.xml b/res/layout-port/all_apps_cling.xml
index e0dcf81..09414ce 100644
--- a/res/layout-port/all_apps_cling.xml
+++ b/res/layout-port/all_apps_cling.xml
@@ -21,7 +21,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="20dp"
- android:layout_marginTop="90dp">
+ android:layout_marginTop="20dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
diff --git a/res/layout-port/folder_cling.xml b/res/layout-port/folder_cling.xml
index d2374bf..9a7969c 100644
--- a/res/layout-port/folder_cling.xml
+++ b/res/layout-port/folder_cling.xml
@@ -21,7 +21,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="20dp"
- android:layout_marginTop="100dp">
+ android:layout_marginRight="10dp"
+ android:layout_marginTop="70dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -32,22 +33,12 @@
android:text="@string/folder_cling_title" />
<TextView
style="@style/ClingText"
- android:id="@+id/folder_cling_move_item"
- android:layout_width="285dp"
+ android:id="@+id/folder_cling_create_folder"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:text="@string/folder_cling_move_item" />
+ android:text="@string/folder_cling_create_folder" />
</LinearLayout>
</FrameLayout>
- <TextView
- style="@style/ClingText"
- android:id="@+id/folder_cling_create_folder"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginLeft="20dp"
- android:layout_marginRight="20dp"
- android:layout_marginBottom="65dp"
- android:layout_gravity="bottom"
- android:text="@string/folder_cling_create_folder" />
<Button
style="@style/ClingButton"
android:id="@+id/cling_dismiss"
diff --git a/res/values-port/dimens.xml b/res/values-port/dimens.xml
index 1c8282d..2b4635c 100644
--- a/res/values-port/dimens.xml
+++ b/res/values-port/dimens.xml
@@ -33,7 +33,7 @@
<dimen name="apps_customize_pageLayoutPaddingLeft">5dp</dimen>
<dimen name="apps_customize_pageLayoutPaddingRight">5dp</dimen>
<integer name="apps_customize_cling_focused_x">1</integer>
- <integer name="apps_customize_cling_focused_y">2</integer>
+ <integer name="apps_customize_cling_focused_y">1</integer>
<dimen name="apps_customize_widget_cell_width_gap">20dp</dimen>
<dimen name="apps_customize_widget_cell_height_gap">10dp</dimen>
diff --git a/res/values-xhdpi/wallpapers.xml b/res/values-xhdpi/wallpapers.xml
new file mode 100644
index 0000000..ad46acd
--- /dev/null
+++ b/res/values-xhdpi/wallpapers.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * Copyright (C) 2009 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ -->
+
+<resources>
+ <string-array name="wallpapers" translatable="false">
+ <item>wallpaper_architecture</item>
+ <item>wallpaper_bubblegum</item>
+ <item>wallpaper_canyon</item>
+ <item>wallpaper_chroma</item>
+ <item>wallpaper_escape</item>
+ <item>wallpaper_fiber</item>
+ <item>wallpaper_fidelity</item>
+ <item>wallpaper_flora</item>
+ <item>wallpaper_kepler</item>
+ <item>wallpaper_leaf</item>
+ <item>wallpaper_noir</item>
+ <item>wallpaper_outofthebox</item>
+ </string-array>
+</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 2ade5c8..5c806e2 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -236,7 +236,7 @@
<!-- The title text for the workspace cling [CHAR_LIMIT=none] -->
<string name="workspace_cling_title">Make yourself at home</string>
<!-- The description of how to use the workspace [CHAR_LIMIT=none] -->
- <string name="workspace_cling_move_item">You can put your favourite apps here.</string>
+ <string name="workspace_cling_move_item">You can put your favorite apps here.</string>
<!-- The description of how to open all apps from the workspace [CHAR_LIMIT=none] -->
<string name="workspace_cling_open_all_apps">To see all your apps, touch the circle.</string>
<!-- The title text for the All Apps cling [CHAR_LIMIT=none] -->
diff --git a/src/com/android/launcher2/Cling.java b/src/com/android/launcher2/Cling.java
index 09c5062..0a9bc7f 100644
--- a/src/com/android/launcher2/Cling.java
+++ b/src/com/android/launcher2/Cling.java
@@ -198,7 +198,7 @@
if (mHandTouchGraphic == null) {
mHandTouchGraphic = getResources().getDrawable(R.drawable.hand);
}
- int offset = -mAppIconSize / 4;
+ int offset = mAppIconSize / 4;
mHandTouchGraphic.setBounds(cx + offset, cy + offset,
cx + mHandTouchGraphic.getIntrinsicWidth() + offset,
cy + mHandTouchGraphic.getIntrinsicHeight() + offset);
diff --git a/src/com/android/launcher2/Folder.java b/src/com/android/launcher2/Folder.java
index a1aa670..f44d3ed 100644
--- a/src/com/android/launcher2/Folder.java
+++ b/src/com/android/launcher2/Folder.java
@@ -405,6 +405,11 @@
@Override
public void onAnimationEnd(Animator animation) {
mState = STATE_OPEN;
+
+ Cling cling = mLauncher.showFirstRunFoldersCling();
+ if (cling != null) {
+ cling.bringToFront();
+ }
}
});
oa.setDuration(mExpandDuration);
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index 3c2c3da..82dc8c4 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -77,10 +77,10 @@
import android.view.View;
import android.view.View.OnLongClickListener;
import android.view.ViewGroup;
-import android.view.ViewParent;
import android.view.WindowManager;
import android.view.accessibility.AccessibilityEvent;
import android.view.animation.AccelerateDecelerateInterpolator;
+import android.view.animation.AccelerateInterpolator;
import android.view.animation.DecelerateInterpolator;
import android.view.inputmethod.InputMethodManager;
import android.widget.Advanceable;
@@ -162,7 +162,7 @@
static final int APPWIDGET_HOST_ID = 1024;
private static final int EXIT_SPRINGLOADED_MODE_SHORT_TIMEOUT = 300;
private static final int EXIT_SPRINGLOADED_MODE_LONG_TIMEOUT = 600;
- private static final int SHOW_CLING_DURATION = 250;
+ private static final int SHOW_CLING_DURATION = 550;
private static final int DISMISS_CLING_DURATION = 250;
private static final Object sLock = new Object();
@@ -1770,8 +1770,6 @@
final FolderInfo info = folderIcon.mInfo;
Folder openFolder = mWorkspace.getFolderForTag(info);
- Cling cling = showFirstRunFoldersCling();
-
// If the folder info reports that the associated folder is open, then verify that
// it is actually opened. There have been a few instances where this gets out of sync.
if (info.opened && openFolder == null) {
@@ -1800,10 +1798,6 @@
}
}
}
-
- if (cling != null) {
- cling.bringToFront();
- }
}
private void growAndFadeOutFolderIcon(FolderIcon fi) {
@@ -2943,6 +2937,7 @@
@Override
public void bindSearchablesChanged() {
updateGlobalSearchIcon();
+ updateVoiceSearchIcon();
}
/**
@@ -3102,7 +3097,7 @@
cling.setAlpha(0f);
cling.animate()
.alpha(1f)
- .setInterpolator(new DecelerateInterpolator())
+ .setInterpolator(new AccelerateInterpolator())
.setDuration(SHOW_CLING_DURATION)
.setStartDelay(delay)
.start();