mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Ensure that we use the system long press duration when dragging from AllApps.
- Removing some old code out of LauncherAppState Bug: 21559400 Change-Id: I3c586094efb7ad8a17d2169bc8aaccf6b0df40a2
This commit is contained in:
@@ -51,7 +51,6 @@ public abstract class ButtonDropTarget extends TextView
|
||||
|
||||
protected Launcher mLauncher;
|
||||
private int mBottomDragPadding;
|
||||
protected TextView mText;
|
||||
protected SearchDropTargetBar mSearchDropTargetBar;
|
||||
|
||||
/** Whether this drop target is active for the current drag */
|
||||
@@ -82,11 +81,9 @@ public abstract class ButtonDropTarget extends TextView
|
||||
mOriginalTextColor = getTextColors();
|
||||
|
||||
// Remove the text in the Phone UI in landscape
|
||||
int orientation = getResources().getConfiguration().orientation;
|
||||
if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
||||
if (!LauncherAppState.getInstance().isScreenLarge()) {
|
||||
setText("");
|
||||
}
|
||||
DeviceProfile grid = ((Launcher) getContext()).getDeviceProfile();
|
||||
if (grid.isVerticalBarLayout()) {
|
||||
setText("");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user