         var castContainerVC: GCKUICastContainerViewController?
         castContainerVC = (window?.rootViewController as? GCKUICastContainerViewController)
         castContainerVC?.miniMediaControlsItemEnabled = notificationsEnabled
-      }
-      else {
+      } else {
         var rootContainerVC: RootContainerViewController?
         rootContainerVC = (window?.rootViewController as? RootContainerViewController)
         rootContainerVC?.miniMediaControlsViewEnabled = notificationsEnabled

  }

  func showAlert(withTitle title: String, message: String) {
    let alert = UIAlertView(title: title, message: message, delegate: nil, cancelButtonTitle: "OK", otherButtonTitles: "")
    alert.show()
  }
  // MARK: - GCKUIImagePicker

  func getImageWith(_ imageHints: GCKUIImageHints, from metadata: GCKMediaMetadata) -> GCKImage? {
    let images = metadata.images()
    if !images.isEmpty {
      if images.count == 1 {
        return images[0] as? GCKImage
      }
      else {
        if imageHints.imageType == .background {
          return images[1] as? GCKImage
        }
        else {
          return images[0] as? GCKImage
        }
      }
    }
    else {
      print("No images available in media metadata. ")
      return nil
    }
  }
}

      if useCastContainerViewController {
        let castContainerVC = (window?.rootViewController as? GCKUICastContainerViewController)
        return castContainerVC!.miniMediaControlsItemEnabled
      } else {
        let rootContainerVC = (window?.rootViewController as? RootContainerViewController)
        return rootContainerVC!.miniMediaControlsViewEnabled
      }
