summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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("");
}
}