mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Update to Kotlin 1.9.10
This commit is contained in:
		@@ -119,7 +119,7 @@ class Kavita(private val context: Context, id: Long) : TrackService(id, "Kavita"
 | 
			
		||||
                    .reduce(Long::or) and Long.MAX_VALUE
 | 
			
		||||
            }
 | 
			
		||||
            val preferences: SharedPreferences by lazy {
 | 
			
		||||
                context.getSharedPreferences("source_$sourceSuffixID", 0x0000)
 | 
			
		||||
                context.getSharedPreferences("source_$sourceSuffixID", Context.MODE_PRIVATE)
 | 
			
		||||
            }
 | 
			
		||||
            val prefApiUrl = preferences.getString("APIURL", "")!!
 | 
			
		||||
            if (prefApiUrl.isEmpty()) {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,7 @@
 | 
			
		||||
package eu.kanade.tachiyomi.data.track.suwayomi
 | 
			
		||||
 | 
			
		||||
import android.app.Application
 | 
			
		||||
import android.content.Context
 | 
			
		||||
import android.content.SharedPreferences
 | 
			
		||||
import eu.kanade.tachiyomi.data.database.models.Track
 | 
			
		||||
import eu.kanade.tachiyomi.data.track.TrackManager
 | 
			
		||||
@@ -107,7 +108,7 @@ class TachideskApi {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private val preferences: SharedPreferences by lazy {
 | 
			
		||||
        Injekt.get<Application>().getSharedPreferences("source_$tachideskExtensionId", 0x0000)
 | 
			
		||||
        Injekt.get<Application>().getSharedPreferences("source_$tachideskExtensionId", Context.MODE_PRIVATE)
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private fun getPrefBaseUrl(): String = preferences.getString(ADDRESS_TITLE, ADDRESS_DEFAULT)!!
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user