mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Bump compileSdk to 30 (#5140)
This commit is contained in:
		@@ -99,7 +99,7 @@ class BackupCreateService : Service() {
 | 
			
		||||
        if (intent == null) return START_NOT_STICKY
 | 
			
		||||
 | 
			
		||||
        try {
 | 
			
		||||
            val uri = intent.getParcelableExtra<Uri>(BackupConst.EXTRA_URI)
 | 
			
		||||
            val uri = intent.getParcelableExtra<Uri>(BackupConst.EXTRA_URI)!!
 | 
			
		||||
            val backupFlags = intent.getIntExtra(BackupConst.EXTRA_FLAGS, 0)
 | 
			
		||||
            val backupFileUri = FullBackupManager(this).createBackup(uri, backupFlags, false)?.toUri()
 | 
			
		||||
            val unifile = UniFile.fromUri(this, backupFileUri)
 | 
			
		||||
 
 | 
			
		||||
@@ -58,21 +58,21 @@ class NotificationReceiver : BroadcastReceiver() {
 | 
			
		||||
            ACTION_SHARE_IMAGE ->
 | 
			
		||||
                shareImage(
 | 
			
		||||
                    context,
 | 
			
		||||
                    intent.getStringExtra(EXTRA_FILE_LOCATION),
 | 
			
		||||
                    intent.getStringExtra(EXTRA_FILE_LOCATION)!!,
 | 
			
		||||
                    intent.getIntExtra(EXTRA_NOTIFICATION_ID, -1)
 | 
			
		||||
                )
 | 
			
		||||
            // Delete image from path and dismiss notification
 | 
			
		||||
            ACTION_DELETE_IMAGE ->
 | 
			
		||||
                deleteImage(
 | 
			
		||||
                    context,
 | 
			
		||||
                    intent.getStringExtra(EXTRA_FILE_LOCATION),
 | 
			
		||||
                    intent.getStringExtra(EXTRA_FILE_LOCATION)!!,
 | 
			
		||||
                    intent.getIntExtra(EXTRA_NOTIFICATION_ID, -1)
 | 
			
		||||
                )
 | 
			
		||||
            // Share backup file
 | 
			
		||||
            ACTION_SHARE_BACKUP ->
 | 
			
		||||
                shareFile(
 | 
			
		||||
                    context,
 | 
			
		||||
                    intent.getParcelableExtra(EXTRA_URI),
 | 
			
		||||
                    intent.getParcelableExtra(EXTRA_URI)!!,
 | 
			
		||||
                    "application/x-protobuf+gzip",
 | 
			
		||||
                    intent.getIntExtra(EXTRA_NOTIFICATION_ID, -1)
 | 
			
		||||
                )
 | 
			
		||||
@@ -106,7 +106,7 @@ class NotificationReceiver : BroadcastReceiver() {
 | 
			
		||||
            ACTION_SHARE_CRASH_LOG ->
 | 
			
		||||
                shareFile(
 | 
			
		||||
                    context,
 | 
			
		||||
                    intent.getParcelableExtra(EXTRA_URI),
 | 
			
		||||
                    intent.getParcelableExtra(EXTRA_URI)!!,
 | 
			
		||||
                    "text/plain",
 | 
			
		||||
                    intent.getIntExtra(EXTRA_NOTIFICATION_ID, -1)
 | 
			
		||||
                )
 | 
			
		||||
 
 | 
			
		||||
@@ -91,7 +91,7 @@ class WebViewActivity : BaseViewBindingActivity<WebviewActivityBinding>() {
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        } else {
 | 
			
		||||
            binding.webview.restoreState(bundle)
 | 
			
		||||
            binding.webview.restoreState(bundle!!)
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (bundle == null) {
 | 
			
		||||
@@ -199,7 +199,7 @@ class WebViewActivity : BaseViewBindingActivity<WebviewActivityBinding>() {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private fun openInBrowser() {
 | 
			
		||||
        openInBrowser(binding.webview.url)
 | 
			
		||||
        openInBrowser(binding.webview.url!!)
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    companion object {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user