mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-03 23:58:55 +01:00 
			
		
		
		
	ExtensionLoader: Fix incorrect ext file deletion (#10026)
Ref c492efcb31
			
			
This commit is contained in:
		@@ -98,7 +98,7 @@ internal object ExtensionLoader {
 | 
			
		||||
 | 
			
		||||
        val target = File(getPrivateExtensionDir(context), "${extension.packageName}.$PRIVATE_EXTENSION_EXTENSION")
 | 
			
		||||
        return try {
 | 
			
		||||
            file.delete()
 | 
			
		||||
            target.delete()
 | 
			
		||||
            file.copyAndSetReadOnlyTo(target, overwrite = true)
 | 
			
		||||
            if (currentExtension != null) {
 | 
			
		||||
                ExtensionInstallReceiver.notifyReplaced(context, extension.packageName)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user