Shakil Karim
07/23/2021, 12:12 PM@Stable
?, I'm using MemoryCache.Key from Coil as a parameter to Composable Function, but not sure if by default it's considered Stable.Gleno
07/23/2021, 12:44 PM@Preview
annotated functions stripped from final binary?Gleno
07/23/2021, 12:45 PM@Preview
annotated function to a pdf or png?Adib Faramarzi
07/23/2021, 1:18 PMAdib Faramarzi
07/23/2021, 1:18 PMjulioromano
07/23/2021, 1:57 PMColton Idle
07/23/2021, 2:02 PMviewModel()
to compile. I've added the lifecycle compose vm dependencyRob
07/23/2021, 5:48 PMjava.lang.ClassCastException: java.lang.String cannot be cast to com.example.myapplication.MyId
when unwrapping boxed value classes in compose collectAsState
. I'm not sure if this a Compose bug or a Kotlin bug. Where should I report this?Colton Idle
07/23/2021, 6:35 PMColton Idle
07/23/2021, 8:05 PM2021-07-23 16:00:13.146 4110-4110/com.rollertoaster.app E/mylog: logged in
2021-07-23 16:00:13.218 4110-4110/com.rollertoaster.app E/mylog: logged in
Chris Fillmore
07/23/2021, 8:51 PMonNewIntent()
when using Compose Navigation? My use case is similar to e.g. OAuth authorization flow. I am redirecting back to an Activity via <intent-filter>, and starting the Activity with SINGLE_TOP. There will be a route in the new Intent, which I want to navigate to. Has anyone handled something like this?
Here’s some dummy code example of what I mean:
class MyActivity {
fun onCreate() {
setContent { MyApp() }
}
fun onNewIntent(intent: Intent) {
val route = intent.getStringExtra("redirect_route")
?? What to do with 'route'
}
}
@Composable
fun MyApp() {
val navController = rememberNavController()
MyNavHost(navController)
}
@Composable
fun MyNavHost(controller: NavController) {
NavHost(...) {
... define routes ...
}
}
Tash
07/23/2021, 10:51 PMButton
, apart from creating physical padding around it by enclosing it in a Box
etc ?Anton Dmytryshyn
07/24/2021, 7:46 AMms
07/24/2021, 9:00 AMAndroid Gradle Plugin Upgrade Assistant
dialog
Dialog says This project is using version 7.1.0-alpha03 of the Android Gradle plugin, which is incompatible with this version of Android Studio.
Using AS Canary 4Mohan
07/24/2021, 11:26 AMNacho Ruiz Martin
07/24/2021, 5:43 PMRE
07/24/2021, 5:54 PMkevindmoore
07/24/2021, 7:13 PMColton Idle
07/25/2021, 1:30 AMAdib Faramarzi
07/25/2021, 5:24 AMLocalBackDispatcher
which does not seem to be there anymore.Abhishek Dewan
07/25/2021, 7:50 AMBox(
modifier = Modifier
.width(1.dp)
.fillMaxHeight()
.background(ScoutTheme.colors.dividerColor.copy(alpha = 0.12f))
)
but I am seeing that when it's used inside a Row who's height is dynamic, nothing ever renders. If I replace the fillMaxHeight with a specific height I see it render but then I have the potential to get empty spaces since the height is specific rather than being dynamicNacho Ruiz Martin
07/25/2021, 10:49 AMursus
07/25/2021, 2:21 PMmario
07/25/2021, 3:09 PMkevindmoore
07/25/2021, 3:18 PMms
07/25/2021, 4:17 PMModalBottomSheetLayout
, is there any way to disable isHalfExpandedEnabled
'cause I want my bottom sheet to expand to it's content heightMehdi Haghgoo
07/25/2021, 5:11 PMJoey
07/25/2021, 6:28 PMJohn Ugwuadi
07/25/2021, 7:00 PMColton Idle
07/26/2021, 1:28 AMScreen1
with Screen2
and Screen3
to get an idea for my duplicated code
@Composable
fun Screen1Screen(navController: NavController, viewModel: Screen1ViewModel = hiltViewModel()) {
if (viewModel.userManagerService.loggedIn) {
ActualScreen1()
} else {
navController.navigate(Screen.SignInScreen.route)
}
}
Making sure that most screens follow the above pattern seems super error prone.