Skip to content

Commit

Permalink
Fixing the account selection dismiss is blocking the UI
Browse files Browse the repository at this point in the history
  • Loading branch information
nkuppan committed Jan 23, 2025
1 parent e9645a8 commit 59a5cf1
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 336 deletions.
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

315 changes: 0 additions & 315 deletions .idea/other.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import com.android.build.gradle.LibraryExtension
import org.gradle.api.Project
import org.gradle.kotlin.dsl.dependencies

const val TARGET_SDK = 34
const val COMPILE_SDK: Int = 34
const val TARGET_SDK = 35
const val COMPILE_SDK: Int = 35
const val MIN_SDK = 21

const val VERSION_NAME = "1.2.7"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ fun Context.shareThisFile(fileUri: Uri) {
fun Context.getAppVersionName(): String {
return try {
val pInfo: PackageInfo = packageManager.getPackageInfo(packageName, 0)
pInfo.versionName
pInfo.versionName ?: ""
} catch (e: PackageManager.NameNotFoundException) {
e.printStackTrace()
""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private fun AccountSelectionView(
) {
ModalBottomSheet(
onDismissRequest = {
onAction.invoke(TransactionCreateAction.DismissCategorySelection)
onAction.invoke(TransactionCreateAction.DismissAccountSelection)
},
containerColor = MaterialTheme.colorScheme.background,
tonalElevation = 0.dp,
Expand Down Expand Up @@ -483,7 +483,7 @@ private fun TransactionCreateStatePreview() {
name = "Shopping",
type = CategoryType.EXPENSE,
StoredIcon(
name = "ic_calendar",
name = "account_balance_wallet",
backgroundColor = "#000000",
),
createdOn = Date(),
Expand All @@ -494,7 +494,7 @@ private fun TransactionCreateStatePreview() {
name = "Shopping",
type = AccountType.REGULAR,
storedIcon = StoredIcon(
name = "ic_calendar",
name = "account_balance_wallet",
backgroundColor = "#000000",
),
amountTextColor = com.naveenapps.expensemanager.core.common.R.color.red_500,
Expand All @@ -505,7 +505,7 @@ private fun TransactionCreateStatePreview() {
name = "Shopping",
type = AccountType.REGULAR,
storedIcon = StoredIcon(
name = "ic_calendar",
name = "account_balance_wallet",
backgroundColor = "#000000",
),
amountTextColor = com.naveenapps.expensemanager.core.common.R.color.green_500,
Expand Down
Loading

0 comments on commit 59a5cf1

Please sign in to comment.