Skip to content

Commit

Permalink
v0.3.2
Browse files Browse the repository at this point in the history
πŸ”§ Bug Fixes

- κ³΅μœ ν•˜κΈ°λ‘œ μƒν’ˆ 등둝 μ™„λ£Œ ν›„ 앱이 κΊΌμ§€λŠ” ν˜„μƒ μˆ˜μ •
- μƒν’ˆ 쀑볡 등둝 μ‹œ ν™ˆ ν™”λ©΄μœΌλ‘œ λŒμ•„κ°€λ„λ‘ μˆ˜μ •
- μƒν’ˆ μˆ˜μ • μ‹œ μƒμ„Έν™”λ©΄μœΌλ‘œ λŒμ•„κ°€λ„λ‘ μˆ˜μ •
- μ‹œμž‘ν™”λ©΄, 둜그인 ν™”λ©΄μ—μ„œ 글씨 크기 초과 μ‹œ ν…μŠ€νŠΈ 크기 μžλ™ μ‘°μ •

Co-Authored-By: EunhoKang <[email protected]>
Co-Authored-By: ootr47 <[email protected]>
Co-Authored-By: 손문기 <[email protected]>
Co-Authored-By: ByeongIk Choi <[email protected]>
  • Loading branch information
5 people committed Dec 12, 2023
1 parent 5cd2c8d commit be7fe31
Show file tree
Hide file tree
Showing 13 changed files with 250 additions and 489 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ android {
applicationId = "app.priceguard"
minSdk = 29
targetSdk = 34
versionCode = 5
versionName = "0.3.1"
versionCode = 6
versionName = "0.3.2"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class SetTargetPriceFragment : Fragment() {
showDialogWithAction(
getString(R.string.success_add),
getString(R.string.success_add_message),
DialogConfirmAction.FINISH
DialogConfirmAction.HOME
)
}

Expand All @@ -174,7 +174,7 @@ class SetTargetPriceFragment : Fragment() {
showDialogWithAction(
getString(R.string.error_add_product),
getString(R.string.exist_product),
DialogConfirmAction.FINISH
DialogConfirmAction.HOME
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ package app.priceguard.ui.data
enum class DialogConfirmAction {
NOTHING,
FINISH,
HOME,
CUSTOM
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package app.priceguard.ui.util

import android.app.Dialog
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.DialogFragment
import app.priceguard.R
import app.priceguard.ui.data.DialogConfirmAction
import app.priceguard.ui.home.HomeActivity
import com.google.android.material.dialog.MaterialAlertDialogBuilder

class ConfirmDialogFragment : DialogFragment() {
Expand Down Expand Up @@ -36,6 +38,10 @@ class ConfirmDialogFragment : DialogFragment() {
resultListener?.onDialogResult(true)
}

DialogConfirmAction.HOME -> {
goToHomeActivity()
}

DialogConfirmAction.NOTHING -> {}
}
dismiss()
Expand All @@ -61,6 +67,16 @@ class ConfirmDialogFragment : DialogFragment() {
}
}

private fun goToHomeActivity() {
val activityIntent = requireActivity().intent
if (activityIntent?.action == Intent.ACTION_SEND) {
val intent = Intent(requireActivity(), HomeActivity::class.java)
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
startActivity(intent)
}
requireActivity().finish()
}

override fun onStart() {
super.onStart()

Expand Down
76 changes: 0 additions & 76 deletions android/app/src/main/res/layout-land/activity_intro.xml

This file was deleted.

153 changes: 0 additions & 153 deletions android/app/src/main/res/layout-land/activity_login.xml

This file was deleted.

Loading

0 comments on commit be7fe31

Please sign in to comment.