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

Commit 2f3c6029 authored by Jorge Ruesga's avatar Jorge Ruesga Committed by Gerrit Code Review
Browse files

Merge "CMFM: Fix select/unselect from menu dialog" into cm-10.1

parents 9a141840 c730945d
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;
                }