change: Move AlertDialogExtensions to core.ui (#438)

This commit is contained in:
Nik Clayton 2024-02-14 11:26:28 +01:00 committed by GitHub
parent 02fbd4cea5
commit 2d03e6cf7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -39,11 +39,11 @@ import app.pachli.core.common.extensions.show
import app.pachli.core.common.extensions.viewBinding import app.pachli.core.common.extensions.viewBinding
import app.pachli.core.data.repository.InstanceInfoRepository import app.pachli.core.data.repository.InstanceInfoRepository
import app.pachli.core.designsystem.R as DR import app.pachli.core.designsystem.R as DR
import app.pachli.core.ui.await
import app.pachli.databinding.ActivityEditProfileBinding import app.pachli.databinding.ActivityEditProfileBinding
import app.pachli.util.Error import app.pachli.util.Error
import app.pachli.util.Loading import app.pachli.util.Loading
import app.pachli.util.Success import app.pachli.util.Success
import app.pachli.util.await
import app.pachli.viewmodel.EditProfileViewModel import app.pachli.viewmodel.EditProfileViewModel
import app.pachli.viewmodel.ProfileDataInUi import app.pachli.viewmodel.ProfileDataInUi
import com.bumptech.glide.Glide import com.bumptech.glide.Glide

View File

@ -97,6 +97,7 @@ import app.pachli.core.navigation.TrendingActivityIntent
import app.pachli.core.network.model.Account import app.pachli.core.network.model.Account
import app.pachli.core.network.model.Notification import app.pachli.core.network.model.Notification
import app.pachli.core.preferences.PrefKeys import app.pachli.core.preferences.PrefKeys
import app.pachli.core.ui.await
import app.pachli.core.ui.reduceSwipeSensitivity import app.pachli.core.ui.reduceSwipeSensitivity
import app.pachli.databinding.ActivityMainBinding import app.pachli.databinding.ActivityMainBinding
import app.pachli.db.DraftsAlert import app.pachli.db.DraftsAlert
@ -108,7 +109,6 @@ import app.pachli.updatecheck.UpdateCheck
import app.pachli.updatecheck.UpdateNotificationFrequency import app.pachli.updatecheck.UpdateNotificationFrequency
import app.pachli.usecase.DeveloperToolsUseCase import app.pachli.usecase.DeveloperToolsUseCase
import app.pachli.usecase.LogoutUsecase import app.pachli.usecase.LogoutUsecase
import app.pachli.util.await
import app.pachli.util.deleteStaleCachedMedia import app.pachli.util.deleteStaleCachedMedia
import app.pachli.util.getDimension import app.pachli.util.getDimension
import app.pachli.util.unsafeLazy import app.pachli.util.unsafeLazy

View File

@ -20,7 +20,7 @@ package app.pachli.components.filters
import android.app.Activity import android.app.Activity
import androidx.appcompat.app.AlertDialog import androidx.appcompat.app.AlertDialog
import app.pachli.R import app.pachli.R
import app.pachli.util.await import app.pachli.core.ui.await
internal suspend fun Activity.showDeleteFilterDialog(filterTitle: String) = AlertDialog.Builder(this) internal suspend fun Activity.showDeleteFilterDialog(filterTitle: String) = AlertDialog.Builder(this)
.setMessage(getString(R.string.dialog_delete_filter_text, filterTitle)) .setMessage(getString(R.string.dialog_delete_filter_text, filterTitle))

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2023 Tusky Contributors * Copyright 2024 Pachli Association
* *
* This file is a part of Pachli. * This file is a part of Pachli.
* *
@ -15,7 +15,7 @@
* see <http://www.gnu.org/licenses>. * see <http://www.gnu.org/licenses>.
*/ */
package app.pachli.util package app.pachli.core.ui
import android.content.DialogInterface import android.content.DialogInterface
import androidx.annotation.StringRes import androidx.annotation.StringRes