Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0de01170 authored by Hyunyoung Song's avatar Hyunyoung Song
Browse files

Code sanitization

- Removed bad method/class name typos

Change-Id: Ie6900e9e3d9ce9b550d2a2442a5dac3f7050a573
parent cc257380
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1054,11 +1054,11 @@ public class CellLayout extends ViewGroup implements BubbleTextShadowHandler {
        final int oldDragCellX = mDragCell[0];
        final int oldDragCellY = mDragCell[1];

        if (outlineProvider == null || outlineProvider.gerenatedDragOutline == null) {
        if (outlineProvider == null || outlineProvider.generatedDragOutline == null) {
            return;
        }

        Bitmap dragOutline = outlineProvider.gerenatedDragOutline;
        Bitmap dragOutline = outlineProvider.generatedDragOutline;
        if (cellX != oldDragCellX || cellY != oldDragCellY) {
            Point dragOffset = dragObject.dragView.getDragVisualizeOffset();
            Rect dragRegion = dragObject.dragView.getDragRegion();
+0 −21
Original line number Diff line number Diff line
@@ -107,17 +107,6 @@ public interface DropTarget {

    /**
     * Handle an object being dropped on the DropTarget
     *
     * @param source DragSource where the drag started
     * @param x X coordinate of the drop location
     * @param y Y coordinate of the drop location
     * @param xOffset Horizontal offset with the object being dragged where the original
     *          touch happened
     * @param yOffset Vertical offset with the object being dragged where the original
     *          touch happened
     * @param dragView The DragView that's being dragged around on screen.
     * @param dragInfo Data associated with the object being dragged
     *
     */
    void onDrop(DragObject dragObject);

@@ -137,16 +126,6 @@ public interface DropTarget {
    /**
     * Check if a drop action can occur at, or near, the requested location.
     * This will be called just before onDrop.
     *
     * @param source DragSource where the drag started
     * @param x X coordinate of the drop location
     * @param y Y coordinate of the drop location
     * @param xOffset Horizontal offset with the object being dragged where the
     *            original touch happened
     * @param yOffset Vertical offset with the object being dragged where the
     *            original touch happened
     * @param dragView The DragView that's being dragged around on screen.
     * @param dragInfo Data associated with the object being dragged
     * @return True if the drop will be accepted, false otherwise.
     */
    boolean acceptDrop(DragObject dragObject);
+1 −1
Original line number Diff line number Diff line
@@ -363,7 +363,7 @@ public class IconCache {
    }

    /**
     * Updates {@param values} to contain versoning information and adds it to the DB.
     * Updates {@param values} to contain versioning information and adds it to the DB.
     * @param values {@link ContentValues} containing icon & title
     */
    private void addIconToDB(ContentValues values, ComponentName key,
+1 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ public class ItemInfo {
    public long container = NO_ID;

    /**
     * Iindicates the screen in which the shortcut appears.
     * Indicates the screen in which the shortcut appears.
     */
    public long screenId = -1;

+3 −3
Original line number Diff line number Diff line
@@ -1340,7 +1340,7 @@ public class Launcher extends Activity
        }

        // Setup the drag controller (drop targets have to be added in reverse order in priority)
        mDragController.setDragScoller(mWorkspace);
        mDragController.setDragScroller(mWorkspace);
        mDragController.setScrollView(mDragLayer);
        mDragController.setMoveTarget(mWorkspace);
        mDragController.addDropTarget(mWorkspace);
@@ -2516,7 +2516,7 @@ public class Launcher extends Activity
     * on the home screen.
     */
    public void onClickWallpaperPicker(View v) {
        if (!Utilities.isWallapaperAllowed(this)) {
        if (!Utilities.isWallpaperAllowed(this)) {
            Toast.makeText(this, R.string.msg_disabled_by_admin, Toast.LENGTH_SHORT).show();
            return;
        }
@@ -3693,7 +3693,7 @@ public class Launcher extends Activity
                if (DEBUG_WIDGETS) {
                    Log.d(TAG, "Removing restored widget: id=" + item.appWidgetId
                            + " belongs to component " + item.providerName
                            + ", as the povider is null");
                            + ", as the provider is null");
                }
                LauncherModel.deleteItemFromDatabase(this, item);
                return;
Loading