diff --git a/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java b/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java index 2e90a097a3e4e284b82cc15f4c5ebf64f8381f54..8be377a58f70ca85339d2b3e6ef1e23d7cb77da9 100755 --- a/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java +++ b/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java @@ -203,6 +203,7 @@ public class LauncherActivity extends AppCompatActivity implements private boolean allAppsDisplayed; private boolean forceRefreshSuggestedApps = false; + private List mUsageStats; private FrameLayout swipeSearchContainer; private InsettableRelativeLayout workspace; @@ -3133,12 +3134,16 @@ public class LauncherActivity extends AppCompatActivity implements public void onSwipeStart() { swipeSearchContainer.setTranslationY( BlissLauncher.getApplication(this).getDeviceProfile().availableHeightPx); - swipeSearchContainer.setVisibility(VISIBLE); + swipeSearchContainer.setVisibility(GONE); showSwipeSearch = false; } @Override public void onSwipe(int position) { + if ((longPressed && !mLongClickStartsDrag) || (!longPressed && isWobbling)){ + return; + } + swipeSearchContainer.setVisibility(VISIBLE); float translateBy = position * 1.25f; if (translateBy <= swipeSearchContainer.getHeight()) { swipeSearchContainer.setTranslationY(-swipeSearchContainer.getHeight() + translateBy);