mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
fix subscriptions import
This commit is contained in:
parent
362bcfe1e5
commit
191b5f6bdd
@ -249,7 +249,7 @@ class Settings : PreferenceFragmentCompat() {
|
|||||||
lifecycleScope.launchWhenCreated {
|
lifecycleScope.launchWhenCreated {
|
||||||
val response = try {
|
val response = try {
|
||||||
val sharedPref = context?.getSharedPreferences("token", Context.MODE_PRIVATE)
|
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) {
|
} catch (e: IOException) {
|
||||||
Log.e(TAG, "IOException, you might not have internet connection")
|
Log.e(TAG, "IOException, you might not have internet connection")
|
||||||
return@launchWhenCreated
|
return@launchWhenCreated
|
||||||
|
Loading…
x
Reference in New Issue
Block a user