diff --git a/app/src/main/java/app/pachli/EditProfileActivity.kt b/app/src/main/java/app/pachli/EditProfileActivity.kt index dc76f90ad..796ca2f95 100644 --- a/app/src/main/java/app/pachli/EditProfileActivity.kt +++ b/app/src/main/java/app/pachli/EditProfileActivity.kt @@ -39,11 +39,11 @@ import app.pachli.core.common.extensions.show import app.pachli.core.common.extensions.viewBinding import app.pachli.core.data.repository.InstanceInfoRepository import app.pachli.core.designsystem.R as DR +import app.pachli.core.ui.await import app.pachli.databinding.ActivityEditProfileBinding import app.pachli.util.Error import app.pachli.util.Loading import app.pachli.util.Success -import app.pachli.util.await import app.pachli.viewmodel.EditProfileViewModel import app.pachli.viewmodel.ProfileDataInUi import com.bumptech.glide.Glide diff --git a/app/src/main/java/app/pachli/MainActivity.kt b/app/src/main/java/app/pachli/MainActivity.kt index a844d1140..50fa633bf 100644 --- a/app/src/main/java/app/pachli/MainActivity.kt +++ b/app/src/main/java/app/pachli/MainActivity.kt @@ -97,6 +97,7 @@ import app.pachli.core.navigation.TrendingActivityIntent import app.pachli.core.network.model.Account import app.pachli.core.network.model.Notification import app.pachli.core.preferences.PrefKeys +import app.pachli.core.ui.await import app.pachli.core.ui.reduceSwipeSensitivity import app.pachli.databinding.ActivityMainBinding import app.pachli.db.DraftsAlert @@ -108,7 +109,6 @@ import app.pachli.updatecheck.UpdateCheck import app.pachli.updatecheck.UpdateNotificationFrequency import app.pachli.usecase.DeveloperToolsUseCase import app.pachli.usecase.LogoutUsecase -import app.pachli.util.await import app.pachli.util.deleteStaleCachedMedia import app.pachli.util.getDimension import app.pachli.util.unsafeLazy diff --git a/app/src/main/java/app/pachli/components/filters/FilterExtensions.kt b/app/src/main/java/app/pachli/components/filters/FilterExtensions.kt index 08106d93e..1cb15b337 100644 --- a/app/src/main/java/app/pachli/components/filters/FilterExtensions.kt +++ b/app/src/main/java/app/pachli/components/filters/FilterExtensions.kt @@ -20,7 +20,7 @@ package app.pachli.components.filters import android.app.Activity import androidx.appcompat.app.AlertDialog 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) .setMessage(getString(R.string.dialog_delete_filter_text, filterTitle)) diff --git a/app/src/main/java/app/pachli/util/AlertDialogExtensions.kt b/core/ui/src/main/kotlin/app/pachli/core/ui/AlertDialogExtensions.kt similarity index 97% rename from app/src/main/java/app/pachli/util/AlertDialogExtensions.kt rename to core/ui/src/main/kotlin/app/pachli/core/ui/AlertDialogExtensions.kt index ea25114ce..4a4a4a13e 100644 --- a/app/src/main/java/app/pachli/util/AlertDialogExtensions.kt +++ b/core/ui/src/main/kotlin/app/pachli/core/ui/AlertDialogExtensions.kt @@ -1,5 +1,5 @@ /* - * Copyright 2023 Tusky Contributors + * Copyright 2024 Pachli Association * * This file is a part of Pachli. * @@ -15,7 +15,7 @@ * see . */ -package app.pachli.util +package app.pachli.core.ui import android.content.DialogInterface import androidx.annotation.StringRes