mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 07:50:31 +05:30
fix subscriptions import
This commit is contained in:
parent
362bcfe1e5
commit
191b5f6bdd
@ -249,7 +249,7 @@ class Settings : PreferenceFragmentCompat() {
|
||||
lifecycleScope.launchWhenCreated {
|
||||
val response = try {
|
||||
val sharedPref = context?.getSharedPreferences("token", Context.MODE_PRIVATE)
|
||||
RetrofitInstance.api.importSubscriptions(sharedPref?.getString("token", "")!!,channels)
|
||||
RetrofitInstance.api.importSubscriptions("false",sharedPref?.getString("token", "")!!,channels)
|
||||
} catch (e: IOException) {
|
||||
Log.e(TAG, "IOException, you might not have internet connection")
|
||||
return@launchWhenCreated
|
||||
|
Loading…
x
Reference in New Issue
Block a user