Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
android:supportsPictureInPicture="true" />

<activity
android:name=".ui.account.AccountSelectActivity"
android:name=".ui.account.AccountSelectActivity2"
android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|keyboard|keyboardHidden"
android:exported="true">
<intent-filter android:exported="true">
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/com/lagradost/cloudstream3/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ import com.lagradost.cloudstream3.utils.downloader.DownloadQueueManager
import com.lagradost.cloudstream3.utils.setText
import com.lagradost.cloudstream3.utils.setTextHtml
import com.lagradost.cloudstream3.utils.txt
import com.lagradost.cloudstream4.compose.CloudStreamThemeAppSettings
import com.lagradost.cloudstream4.theme.CloudStreamTheme
import com.lagradost.safefile.SafeFile
import kotlinx.coroutines.Job
Expand Down Expand Up @@ -1301,7 +1302,7 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener, BiometricCa

composeView.apply {
setContent {
CloudStreamTheme {
CloudStreamThemeAppSettings {
MainActivityScreen.Content()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,11 @@ object AccountHelper {

fun Activity?.showAccountSelectLinear() {
val activity = this as? MainActivity ?: return
activity.navigate(
R.id.accountSelectActivity,
Bundle().apply { putBoolean(AccountSelectActivity2.IS_FROM_MAIN_ACTIVITY, true) }
)
/*
val viewModel = ViewModelProvider(activity)[AccountViewModel::class.java]

val binding: AccountSelectLinearBinding = AccountSelectLinearBinding.inflate(
Expand Down Expand Up @@ -425,6 +430,6 @@ object AccountHelper {
val layoutManager = recyclerView.layoutManager as LinearLayoutManager
layoutManager.scrollToPositionWithOffset(selectedKeyIndex, 0)
}
}
}*/
}
}
Loading
Loading