Skip to content

Instantly share code, notes, and snippets.

@oussama-dz
Created May 23, 2023 18:13
Show Gist options
  • Save oussama-dz/da706eb0d26ba4085f3ce368abbb9532 to your computer and use it in GitHub Desktop.
Save oussama-dz/da706eb0d26ba4085f3ce368abbb9532 to your computer and use it in GitHub Desktop.
Calling the permission composable in the main activity
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
PermissionHandlingTheme {
// A surface container using the 'background' color from the theme
Surface(
modifier = Modifier.fillMaxSize(),
color = MaterialTheme.colors.background
) {
Permissions()
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment