mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-30 23:03:00 +00:00 
			
		
		
		
	Actually fix the parentFile warning
This commit is contained in:
		| @@ -207,8 +207,9 @@ class SubscriptionFragment : BaseStateFragment<SubscriptionState>() { | ||||
|         super.onActivityResult(requestCode, resultCode, data) | ||||
|         if (data != null && data.data != null && resultCode == Activity.RESULT_OK) { | ||||
|             if (requestCode == REQUEST_EXPORT_CODE) { | ||||
|                 val exportFile = Utils.getFileForUri(data.data!!)!! | ||||
|                 if (!exportFile.parentFile.canWrite() || !exportFile.parentFile.canRead()) { | ||||
|                 val exportFile = Utils.getFileForUri(data.data!!) | ||||
|                 val parentFile = exportFile.parentFile!! | ||||
|                 if (!parentFile.canWrite() || !parentFile.canRead()) { | ||||
|                     Toast.makeText(activity, R.string.invalid_directory, Toast.LENGTH_SHORT).show() | ||||
|                 } else { | ||||
|                     activity.startService( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 mhmdanas
					mhmdanas