mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
use api id prefix instead of plain text 🙏
This commit is contained in:
parent
ad99dee4dc
commit
f4f485a995
1 changed files with 3 additions and 2 deletions
|
@ -92,6 +92,7 @@ import com.lagradost.cloudstream3.syncproviders.AccountManager.Companion.appStri
|
||||||
import com.lagradost.cloudstream3.syncproviders.AccountManager.Companion.appStringResumeWatching
|
import com.lagradost.cloudstream3.syncproviders.AccountManager.Companion.appStringResumeWatching
|
||||||
import com.lagradost.cloudstream3.syncproviders.AccountManager.Companion.appStringSearch
|
import com.lagradost.cloudstream3.syncproviders.AccountManager.Companion.appStringSearch
|
||||||
import com.lagradost.cloudstream3.syncproviders.AccountManager.Companion.inAppAuths
|
import com.lagradost.cloudstream3.syncproviders.AccountManager.Companion.inAppAuths
|
||||||
|
import com.lagradost.cloudstream3.syncproviders.AccountManager.Companion.localListApi
|
||||||
import com.lagradost.cloudstream3.syncproviders.SyncAPI
|
import com.lagradost.cloudstream3.syncproviders.SyncAPI
|
||||||
import com.lagradost.cloudstream3.ui.APIRepository
|
import com.lagradost.cloudstream3.ui.APIRepository
|
||||||
import com.lagradost.cloudstream3.ui.SyncWatchType
|
import com.lagradost.cloudstream3.ui.SyncWatchType
|
||||||
|
@ -1115,8 +1116,8 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener, BiometricCa
|
||||||
libraryViewModel = ViewModelProvider(this)[LibraryViewModel::class.java]
|
libraryViewModel = ViewModelProvider(this)[LibraryViewModel::class.java]
|
||||||
libraryViewModel?.currentApiName?.observe(this) {
|
libraryViewModel?.currentApiName?.observe(this) {
|
||||||
val syncAPI = libraryViewModel?.currentSyncApi
|
val syncAPI = libraryViewModel?.currentSyncApi
|
||||||
Log.i("SYNC_API", syncAPI?.name.toString())
|
Log.i("SYNC_API", "${syncAPI?.name}, ${syncAPI?.idPrefix}")
|
||||||
val icon = if (syncAPI?.name == "Local") {
|
val icon = if (syncAPI?.idPrefix == localListApi.idPrefix) {
|
||||||
R.drawable.library_icon
|
R.drawable.library_icon
|
||||||
} else {
|
} else {
|
||||||
syncAPI?.icon ?: R.drawable.library_icon
|
syncAPI?.icon ?: R.drawable.library_icon
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue