code: private void initializeCheckedItems() {
          if (checkedItems != null) {
              for (int i = 0; i < checkedItems.length; i++) {
                  adapter.setItemChecked(i, checkedItems[i]);
              }
          }
      }
docs: Initializes the list items, which are checked by default.