setContentsAndNotify(contents) {
    if (this.isOpen()) {
      this.clearNotificationCount_();
    } else {
      this.updateNotificationCount_(contents);
    }
    this.setContents(contents);
    this.updateNotification_();
  }
Sets backpack contents and updates the notification.
@param {!Array<string>} contents The new backpack contents.