diff options
author | Robert Burns <burnsra@gmail.com> | 2013-01-04 08:19:33 -0500 |
---|---|---|
committer | Robert Burns <burnsra@gmail.com> | 2013-01-04 16:11:36 -0500 |
commit | ea70b090f72c4fda36d1ecb6fac91e84f7131564 (patch) | |
tree | 0a5d270ced9b03520e124a29c0ece5bcc1885c2e /src/com/cyanogenmod | |
parent | 95f418c36a4e14a8fec1764fcb888112d671022c (diff) | |
download | packages_apps_trebuchet-ea70b090f72c4fda36d1ecb6fac91e84f7131564.zip packages_apps_trebuchet-ea70b090f72c4fda36d1ecb6fac91e84f7131564.tar.gz packages_apps_trebuchet-ea70b090f72c4fda36d1ecb6fac91e84f7131564.tar.bz2 |
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
Diffstat (limited to 'src/com/cyanogenmod')
-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(""); } } |