diff options
-rw-r--r-- | src/com/cyanogenmod/trebuchet/DeleteDropTarget.java | 5 | ||||
-rw-r--r-- | src/com/cyanogenmod/trebuchet/EditDropTarget.java | 5 | ||||
-rw-r--r-- | src/com/cyanogenmod/trebuchet/InfoDropTarget.java | 5 |
3 files changed, 9 insertions, 6 deletions
diff --git a/src/com/cyanogenmod/trebuchet/DeleteDropTarget.java b/src/com/cyanogenmod/trebuchet/DeleteDropTarget.java index d98fd62..e985ef5 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 7089ef4..5ea8ccd 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 941a294..eaef23e 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(""); } } |