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

Commit c730945d authored by Jorge Ruesga's avatar Jorge Ruesga
Browse files

CMFM: Fix select/unselect from menu dialog



Also, remove unused public toggleSelection method

Change-Id: I455057234056f3b0d94447fac6bc9b29152b14b6
Signed-off-by: default avatarJorge Ruesga <jorge@ruesga.com>
parent 0eb0a64d
Loading
Loading
Loading
Loading
+3 −10
Original line number Diff line number Diff line
@@ -328,16 +328,6 @@ public class FileSystemObjectAdapter
        return this.mData[position].mSelected;
    }

    /**
     * Method that selects in the {@link ArrayAdapter} the passed item.
     *
     * @param item The view to select
     */
    public void toggleSelection(View item) {
        ImageButton view = (ImageButton)item.findViewById(RESOURCE_ITEM_CHECK);
        onClick(view);
    }

    /**
     * Method that selects in the {@link ArrayAdapter} the passed item.
     *
@@ -405,6 +395,9 @@ public class FileSystemObjectAdapter
                        this.mOnSelectionChangedListener.onSelectionChanged(selection);
                    }

                    // The internal structure was update, only super adapter need to be notified
                    super.notifyDataSetChanged();

                    //Found
                    return;
                }