mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Need to remove views and not just hide them after animations.
- Removing Manage Apps button from workspace and renaming it in AppsCustomize - Fixing foolish string play in resources from initial change for search bar - Using proper way to get full screen dims for wallpaper fix Change-Id: I1319d225135436468f1feb3057cd9f28eda7c89c
This commit is contained in:
@@ -18,6 +18,7 @@ package com.android.launcher2;
|
||||
|
||||
import android.animation.ObjectAnimator;
|
||||
import android.content.Context;
|
||||
import android.content.res.Configuration;
|
||||
import android.content.res.Resources;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.PorterDuff;
|
||||
@@ -56,6 +57,14 @@ public class DeleteDropTarget extends ButtonDropTarget {
|
||||
mHoverColor, PorterDuff.Mode.SRC_ATOP));
|
||||
setBackgroundColor(mHoverColor);
|
||||
getBackground().setAlpha(0);
|
||||
|
||||
// Remove the text in the Phone UI in landscape
|
||||
int orientation = getResources().getConfiguration().orientation;
|
||||
if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
||||
if (!LauncherApplication.isScreenLarge()) {
|
||||
mText.setText("");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private boolean isAllAppsApplication(DragSource source, Object info) {
|
||||
|
||||
Reference in New Issue
Block a user