Added AndroidEntryPoint annotation
This commit is contained in:
		
							parent
							
								
									19781ecb1d
								
							
						
					
					
						commit
						1b470cc7d9
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -10,8 +10,11 @@ import androidx.compose.material.Text
 | 
			
		|||
import androidx.compose.runtime.Composable
 | 
			
		||||
import androidx.compose.ui.Modifier
 | 
			
		||||
import androidx.compose.ui.tooling.preview.Preview
 | 
			
		||||
import be.ugent.sel.studeez.StudeezApp
 | 
			
		||||
import be.ugent.sel.studeez.ui.theme.StudeezTheme
 | 
			
		||||
import dagger.hilt.android.AndroidEntryPoint
 | 
			
		||||
 | 
			
		||||
@AndroidEntryPoint
 | 
			
		||||
class MainActivity : ComponentActivity() {
 | 
			
		||||
    override fun onCreate(savedInstanceState: Bundle?) {
 | 
			
		||||
        super.onCreate(savedInstanceState)
 | 
			
		||||
| 
						 | 
				
			
			@ -22,7 +25,7 @@ class MainActivity : ComponentActivity() {
 | 
			
		|||
                    modifier = Modifier.fillMaxSize(),
 | 
			
		||||
                    color = MaterialTheme.colors.background
 | 
			
		||||
                ) {
 | 
			
		||||
                    Greeting("Android")
 | 
			
		||||
                    StudeezApp()
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue