summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Burns <burnsra@gmail.com>2013-01-04 08:19:33 -0500
committerRobert Burns <burnsra@gmail.com>2013-01-04 16:11:36 -0500
commitea70b090f72c4fda36d1ecb6fac91e84f7131564 (patch)
tree0a5d270ced9b03520e124a29c0ece5bcc1885c2e
parent95f418c36a4e14a8fec1764fcb888112d671022c (diff)
downloadandroid_packages_apps_Trebuchet-ea70b090f72c4fda36d1ecb6fac91e84f7131564.tar.gz
android_packages_apps_Trebuchet-ea70b090f72c4fda36d1ecb6fac91e84f7131564.tar.bz2
android_packages_apps_Trebuchet-ea70b090f72c4fda36d1ecb6fac91e84f7131564.zip
Remove drop target text in landscape
- Vertical text currently has wrapping issues and is unnecessary - Text was being shown on all tablet devices Screenshot of wrapping issue: https://docs.google.com/file/d/0B9gh9VnHidOdOWdUdHdrY0VQdEE/edit Change-Id: Ibcca6956e21f6441a6ef7baee3a8b7d8dcbd89f9
-rw-r--r--src/com/cyanogenmod/trebuchet/DeleteDropTarget.java5
-rw-r--r--src/com/cyanogenmod/trebuchet/EditDropTarget.java5
-rw-r--r--src/com/cyanogenmod/trebuchet/InfoDropTarget.java5
3 files changed, 9 insertions, 6 deletions
diff --git a/src/com/cyanogenmod/trebuchet/DeleteDropTarget.java b/src/com/cyanogenmod/trebuchet/DeleteDropTarget.java
index d98fd6225..e985ef5f0 100644
--- a/src/com/cyanogenmod/trebuchet/DeleteDropTarget.java
+++ b/src/com/cyanogenmod/trebuchet/DeleteDropTarget.java
@@ -89,10 +89,11 @@ public class DeleteDropTarget extends ButtonDropTarget {
mRemoveActiveDrawable = r.getDrawable(R.drawable.ic_launcher_clear_active_holo);
mRemoveNormalDrawable = r.getDrawable(R.drawable.ic_launcher_clear_normal_holo);
- // Remove the text in the Phone UI in landscape
+ // Remove the text in landscape
int orientation = getResources().getConfiguration().orientation;
+ boolean transposeLayout = getResources().getBoolean(R.bool.hotseat_transpose_layout_with_orientation);
if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
- if (!LauncherApplication.isScreenLarge()) {
+ if (transposeLayout) {
setText("");
}
}
diff --git a/src/com/cyanogenmod/trebuchet/EditDropTarget.java b/src/com/cyanogenmod/trebuchet/EditDropTarget.java
index 7089ef4b6..5ea8ccddc 100644
--- a/src/com/cyanogenmod/trebuchet/EditDropTarget.java
+++ b/src/com/cyanogenmod/trebuchet/EditDropTarget.java
@@ -53,10 +53,11 @@ public class EditDropTarget extends ButtonDropTarget {
mDrawable = (TransitionDrawable) getCurrentDrawable();
mDrawable.setCrossFadeEnabled(true);
- // Remove the text in the Phone UI in landscape
+ // Remove the text in landscape
int orientation = getResources().getConfiguration().orientation;
+ boolean transposeLayout = getResources().getBoolean(R.bool.hotseat_transpose_layout_with_orientation);
if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
- if (!LauncherApplication.isScreenLarge()) {
+ if (transposeLayout) {
setText("");
}
}
diff --git a/src/com/cyanogenmod/trebuchet/InfoDropTarget.java b/src/com/cyanogenmod/trebuchet/InfoDropTarget.java
index 941a29466..eaef23ea8 100644
--- a/src/com/cyanogenmod/trebuchet/InfoDropTarget.java
+++ b/src/com/cyanogenmod/trebuchet/InfoDropTarget.java
@@ -51,10 +51,11 @@ public class InfoDropTarget extends ButtonDropTarget {
mDrawable = (TransitionDrawable) getCurrentDrawable();
mDrawable.setCrossFadeEnabled(true);
- // Remove the text in the Phone UI in landscape
+ // Remove the text in landscape
int orientation = getResources().getConfiguration().orientation;
+ boolean transposeLayout = getResources().getBoolean(R.bool.hotseat_transpose_layout_with_orientation);
if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
- if (!LauncherApplication.isScreenLarge()) {
+ if (transposeLayout) {
setText("");
}
}