Commit 3daa120a authored by Romain Hunault's avatar Romain Hunault

Merge branch 'issue-1047' into 'develop'

Fix 'Search bar visible when editing app grid'

See merge request e/apps/BlissLauncher!25
parents 755271f0 b048ffdc
Pipeline #49752 passed with stage
in 6 minutes and 38 seconds
......@@ -203,6 +203,7 @@ public class LauncherActivity extends AppCompatActivity implements
private boolean allAppsDisplayed;
private boolean forceRefreshSuggestedApps = false;
private List<UsageStats> mUsageStats;
private FrameLayout swipeSearchContainer;
private InsettableRelativeLayout workspace;
......@@ -3129,12 +3130,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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment