summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/DeleteDropTarget.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2011-06-20 15:41:53 -0700
committerWinson Chung <winsonc@google.com>2011-06-20 17:14:37 -0700
commit201bc828d5a0078f505e8e37152156a0cb43c10a (patch)
tree698628a43eec7783c1d885b12aa771fd82579f93 /src/com/android/launcher2/DeleteDropTarget.java
parent30faf5197983383e15728c66ee7e9a39d5b717b2 (diff)
downloadandroid_packages_apps_Trebuchet-201bc828d5a0078f505e8e37152156a0cb43c10a.tar.gz
android_packages_apps_Trebuchet-201bc828d5a0078f505e8e37152156a0cb43c10a.tar.bz2
android_packages_apps_Trebuchet-201bc828d5a0078f505e8e37152156a0cb43c10a.zip
Need to remove views and not just hide them after animations.
- Removing Manage Apps button from workspace and renaming it in AppsCustomize - Fixing foolish string play in resources from initial change for search bar - Using proper way to get full screen dims for wallpaper fix Change-Id: I1319d225135436468f1feb3057cd9f28eda7c89c
Diffstat (limited to 'src/com/android/launcher2/DeleteDropTarget.java')
-rw-r--r--src/com/android/launcher2/DeleteDropTarget.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/launcher2/DeleteDropTarget.java b/src/com/android/launcher2/DeleteDropTarget.java
index 5b3fd1e16..a30c03e66 100644
--- a/src/com/android/launcher2/DeleteDropTarget.java
+++ b/src/com/android/launcher2/DeleteDropTarget.java
@@ -18,6 +18,7 @@ package com.android.launcher2;
import android.animation.ObjectAnimator;
import android.content.Context;
+import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.PorterDuff;
@@ -56,6 +57,14 @@ public class DeleteDropTarget extends ButtonDropTarget {
mHoverColor, PorterDuff.Mode.SRC_ATOP));
setBackgroundColor(mHoverColor);
getBackground().setAlpha(0);
+
+ // Remove the text in the Phone UI in landscape
+ int orientation = getResources().getConfiguration().orientation;
+ if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
+ if (!LauncherApplication.isScreenLarge()) {
+ mText.setText("");
+ }
+ }
}
private boolean isAllAppsApplication(DragSource source, Object info) {