compose: Replicate BlacklistFragment in compose
Introduce a new activity to host composables as View system behaves quite bad when composable are used inside it. Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -42,7 +42,9 @@ import androidx.core.app.ActivityOptionsCompat
|
||||
import androidx.core.content.getSystemService
|
||||
import com.aurora.Constants
|
||||
import com.aurora.gplayapi.data.models.App
|
||||
import com.aurora.store.ComposeActivity
|
||||
import com.aurora.store.R
|
||||
import com.aurora.store.compose.navigation.Screen
|
||||
|
||||
private const val TAG = "Context"
|
||||
|
||||
@@ -153,3 +155,10 @@ fun Context.isDomainVerified(domain: String): Boolean {
|
||||
true
|
||||
}
|
||||
}
|
||||
|
||||
fun Context.navigate(screen: Screen) {
|
||||
val intent = Intent(this, ComposeActivity::class.java).apply {
|
||||
putExtra(Screen.PARCEL_KEY, screen)
|
||||
}
|
||||
startActivity(intent)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user