Use Compose version of SyncFavoritesWarningDialog
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
package exh.favorites
|
||||
|
||||
import android.content.Context
|
||||
import androidx.core.text.HtmlCompat
|
||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||
import eu.kanade.domain.UnsortedPreferences
|
||||
import eu.kanade.tachiyomi.R
|
||||
import uy.kohesive.injekt.injectLazy
|
||||
|
||||
class FavoritesIntroDialog {
|
||||
private val prefs: UnsortedPreferences by injectLazy()
|
||||
|
||||
fun show(context: Context) = MaterialAlertDialogBuilder(context)
|
||||
.setTitle(R.string.favorites_sync_notes)
|
||||
.setMessage(HtmlCompat.fromHtml(context.getString(R.string.favorites_sync_notes_message), HtmlCompat.FROM_HTML_MODE_LEGACY))
|
||||
.setPositiveButton(android.R.string.ok) { _, _ ->
|
||||
prefs.exhShowSyncIntro().set(false)
|
||||
}
|
||||
.setCancelable(false)
|
||||
.show()
|
||||
}
|
||||
Reference in New Issue
Block a user