diff --git a/app/src/main/java/com/github/libretube/Library.kt b/app/src/main/java/com/github/libretube/Library.kt index 9776d1209..9f557b0d5 100644 --- a/app/src/main/java/com/github/libretube/Library.kt +++ b/app/src/main/java/com/github/libretube/Library.kt @@ -48,8 +48,8 @@ class Library : Fragment() { playlistRecyclerView.layoutManager = LinearLayoutManager(view.context) val sharedPref = context?.getSharedPreferences("token", Context.MODE_PRIVATE) token = sharedPref?.getString("token","")!! + refreshLayout = view.findViewById(R.id.playlist_refresh) if(token!="") { - refreshLayout = view.findViewById(R.id.playlist_refresh) view.findViewById(R.id.boogh2).visibility=View.GONE view.findViewById(R.id.textLike2).visibility=View.GONE fetchPlaylists(view) @@ -67,6 +67,8 @@ class Library : Fragment() { createPlaylist("$playlistName", view); } } else{ + refreshLayout?.isEnabled = false + view.findViewById