Explorar o código

VLCMediaCategoryViewController: Search: Empty text when canceled

(closes #532)
Soomin Lee %!s(int64=6) %!d(string=hai) anos
pai
achega
fb0dbbc6e9
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Sources/MediaCategories/MediaCategoryViewController.swift

+ 1 - 0
Sources/MediaCategories/MediaCategoryViewController.swift

@@ -255,6 +255,7 @@ class VLCMediaCategoryViewController: UICollectionViewController, UICollectionVi
 
     func searchBarCancelButtonClicked(_ searchBar: UISearchBar) {
         searchBar.resignFirstResponder()
+        searchBar.text = ""
         searchBar.setShowsCancelButton(false, animated: true)
         reloadData()
     }