BottomSheet icon indicating copy to clipboard operation
BottomSheet copied to clipboard

IndexOutOfBoundsException

Open doct0rX opened this issue 5 years ago • 0 comments

when I use builder.setItem(); like this example:

int[] items = new int[] {
    R.string.share,
    R.string.upload,
    R.string.copy,
    R.string.print_this_page
};

builder.setItems(items, new DialogInterface.OnClickListener() {
    @Override
    public void onClick(DialogInterface dialog, int which) {
        // your code here.
    }
});

I get

java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
        at java.util.ArrayList.get(ArrayList.java:437)

doct0rX avatar Mar 21 '19 13:03 doct0rX