code: public boolean setDrawableByLayerId(int id, Drawable drawable) {
          final int index = findIndexByLayerId(id);
          if (index < 0) {
              return false;
          }
  
          setDrawable(index, drawable);
          return true;
      }
docs: Replaces the {@link Drawable} for the layer with the given id.
  
  @param id       The layer ID to search for.
  @param drawable The replacement {@link Drawable}.
  @return Whether the {@link Drawable} was replaced (could return false if the id was not
  found).