That didn't work... maybe this?
This commit is contained in:
		@@ -190,6 +190,7 @@ class GoodSoftware (private val activity: Context) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    private fun takePicture(){
 | 
					    private fun takePicture(){
 | 
				
			||||||
        val activity = activity.getActivity()
 | 
					        val activity = activity.getActivity()
 | 
				
			||||||
 | 
					        try {
 | 
				
			||||||
            activity?.let { act ->
 | 
					            activity?.let { act ->
 | 
				
			||||||
                if (act is LifecycleOwner) {
 | 
					                if (act is LifecycleOwner) {
 | 
				
			||||||
                    act.lifecycleScope.launch {
 | 
					                    act.lifecycleScope.launch {
 | 
				
			||||||
@@ -200,6 +201,9 @@ class GoodSoftware (private val activity: Context) {
 | 
				
			|||||||
                    Log.e("Error", "Activity is not a LifecycleOwner")
 | 
					                    Log.e("Error", "Activity is not a LifecycleOwner")
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					        }catch (e: Exception) {
 | 
				
			||||||
 | 
					            e.printStackTrace()
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user