feat: Add option to clear home screen in settings (#6125)
Signed-off-by: abhixv <abhi.sharma1@hotmail.com>
This commit is contained in:
1 parent
9898749619
commit
5f3a03f4fb
1577 files changed
+112559
-80244
No files matched your search
@@ -22,7 +22,6 @@ import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCH
|
||||
import android.content.Context;
|
||||
import android.text.TextUtils;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
|
||||
import com.android.launcher3.accessibility.LauncherAccessibilityDelegate;
|
||||
@@ -143,11 +142,8 @@ public class DeleteDropTarget extends ButtonDropTarget {
|
||||
public void completeDrop(DragObject d) {
|
||||
ItemInfo item = d.dragInfo;
|
||||
if (canRemove(item)) {
|
||||
onAccessibilityDrop(null, item);
|
||||
mDropTargetHandler.onDeleteComplete(item);
|
||||
} else if (mText == getResources().getText(R.string.remove_drop_target_label)) {
|
||||
Log.wtf("b/379606516", "If the drop target text is 'remove', then"
|
||||
+ " users should always be able to delete the item from launcher's db."
|
||||
+ " Invalid drag ItemInfo: " + item);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user