ktlint: Final formatting fixes

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2026-01-01 12:37:07 +08:00
parent a8d37cb2ba
commit 37793ee67d
8 changed files with 19 additions and 16 deletions

View File

@@ -50,7 +50,7 @@ object Constants {
const val GITLAB_URL = "https://gitlab.com/AuroraOSS/AuroraStore"
const val URL_DISPENSER = "https://auroraoss.com/api/auth"
//ACCOUNTS
// ACCOUNTS
const val ACCOUNT_SIGNED_IN = "ACCOUNT_SIGNED_IN"
const val ACCOUNT_TYPE = "ACCOUNT_TYPE"
const val ACCOUNT_EMAIL_PLAIN = "ACCOUNT_EMAIL_PLAIN"

View File

@@ -28,7 +28,8 @@ fun PackageInfo.isValidApp(packageManager: PackageManager): Boolean {
return when {
isQAndAbove -> {
Process.isApplicationUid(this.applicationInfo!!.uid) &&
!this.applicationInfo!!.isResourceOverlay && !this.isApex
!this.applicationInfo!!.isResourceOverlay &&
!this.isApex
}
isNAndAbove -> Process.isApplicationUid(this.applicationInfo!!.uid)

View File

@@ -124,8 +124,7 @@ private fun ScreenContent(
Button(
modifier = buttonWidthModifier,
enabled =
!isFinalPage() ||
enabled = !isFinalPage() ||
(!uiState.isMicroBundleChecked || uiState.isMicroGBundleInstalled),
onClick = {
when {

View File

@@ -206,7 +206,8 @@ class DownloadWorker @AssistedInject constructor(
private suspend fun onSuccess(): Result {
return withContext(NonCancellable) {
return@withContext try {
if (BuildConfig.FLAVOR == FLAVOUR_HUAWEI && download.requiresGMS &&
if (BuildConfig.FLAVOR == FLAVOUR_HUAWEI &&
download.requiresGMS &&
PackageUtil.hasMicroGCompanion(context)
) {
appInstaller.getMicroGInstaller().install(download)

View File

@@ -104,7 +104,6 @@ class ExportWorker @AssistedInject constructor(
notificationManager = context.getSystemService<NotificationManager>()!!
@Suppress("ktlint:standard:mixed-condition-operators")
if (packageName.isNullOrEmpty() || isDownload && versionCode == -1L) {
Log.e(TAG, "Input data is corrupt, bailing out!")
notifyStatus(displayName ?: String(), uri, false)

View File

@@ -123,7 +123,8 @@ object PackageUtil {
context,
PACKAGE_NAME_PLAY_STORE,
VERSION_CODE_MICROG_COMPANION_MIN
) && hasActivity(
) &&
hasActivity(
context,
PACKAGE_NAME_PLAY_STORE,
MICROG_INSTALL_ACTIVITY

View File

@@ -41,8 +41,10 @@ open class GenericCarouselController(private val callbacks: Callbacks) :
}
open fun applyFilter(streamBundle: StreamCluster): Boolean {
return streamBundle.clusterTitle.isNotBlank() && // Filter noisy cluster
streamBundle.clusterAppList.isNotEmpty() && // Filter empty clusters
return streamBundle.clusterTitle.isNotBlank() &&
// Filter noisy cluster
streamBundle.clusterAppList.isNotEmpty() &&
// Filter empty clusters
streamBundle.clusterAppList.count() > 1 // Filter clusters with single apps (promotions)
}

View File

@@ -71,8 +71,8 @@ class BlacklistViewModel @Inject constructor(
if (query.isNotBlank()) {
_filteredPackages.value = packages.value!!
.filter {
it.applicationInfo!!.loadLabel(context.packageManager)
.contains(query, true) || it.packageName.contains(query, true)
it.applicationInfo!!.loadLabel(context.packageManager).contains(query, true) ||
it.packageName.contains(query, true)
}
} else {
_filteredPackages.value = packages.value