-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π Feature Updates - System Navigation Bar μμλ ν λ§μ λ°λκ²λ μμ - μν μμΈ νλ©΄μμ Graph μμμ΄ μΈλ‘λ‘ μ¬λΌμ΄λν κ²½μ° μ€ν¬λ‘€ μμμ μ μ©λλλ‘ λ³κ²½ (μ΄μ λΆν°λ κΈΈκ² λλ₯Ό μ κ·Έλν λΌλ²¨μ΄ νμ±νλ©λλ€) - μΌλΆ νμ΄μ§μμ μ κ·Όμ± κ°μ π§ Bug Fixes - μν λͺ©λ‘ νλ©΄μμ μλ¦Ό ν κΈμ κ»λ€κ° μΌ°μλ νμ±ν μνμμ κΊΌμ§ μνμ μμ΄μ½μ΄ λ¨λ μ€λ₯ μμ - μν λͺ©λ‘ νλ©΄μμ νλ©΄μ ν κΈκ°μ λ³κ²½ν ν, μλ‘κ³ μΉ¨μ νμλ μλλλ‘ λμμ€λ λ¬Έμ μμ - λ‘λ©μ€μΌλ μν μμΈ νλ©΄μμ λ²νΌλ€ λΉνμ±ν - Dynamic Themeμ μ§μνμ§ μλ OSμ κ²½μ° ν΄λΉ ν λ§ μ€μ View λΉνμ±ν - μν, μν μΆμ² λͺ©λ‘ μ νμ μ€ν¬λ‘€ / λΉκ²¨μ μλ‘κ³ μΉ¨ μ€λ₯ μμ - νλ©΄ νμ μ λ€μ΄μΌλ‘κ·Έκ° μ¬λΌμ§λ νμ μμ - μν μμΈ νμ΄μ§μμ νλ©΄ νμ μ Scroll Stateκ° μ΄κΈ°νλλ νμ μμ - λͺ¨λ νμ΄μ§μμ λ²νΌ μ°μ μ λ ₯ λ°©μ§ μ²λ¦¬ - λͺ¨λ νμ΄μ§μμ λ©λͺ¨λ¦¬ λμκ° μΌμ΄λλ μΌλΆ νλͺ©λ€ μμ - μμ€ν κΈκΌ΄μ ν€μ μλ UIκ° κΉ¨μ§λ λ¬Έμ μμ - ν λ§ λ³κ²½ ν μ± μ¬μμ μ ν λ§ λ³κ²½μ΄ μλλ μ€λ₯ μμ - λͺ©ν κ°κ²© μμ μ κ°κ²© μμ νλ©΄ μ΄κΈ° κ° κΈ°μ‘΄ λͺ©ν κ°κ²©μΌλ‘ μμ - λ΄ μ 보 νμ΄μ§μμ μ΄λ¦μ λ¬Έμλ§ λμ¬ μ μλλ‘ μμ Material Chart Changelog: https://github.com/Taewan-P/material-android-chart/releases/tag/v0.2.0 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
1 parent
fd7b149
commit 5cd2c8d
Showing
57 changed files
with
1,056 additions
and
535 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
android/app/src/main/java/app/priceguard/ui/ErrorDialogFragment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package app.priceguard.ui | ||
|
||
import android.app.Dialog | ||
import android.content.Intent | ||
import android.os.Bundle | ||
import androidx.fragment.app.DialogFragment | ||
import app.priceguard.R | ||
import app.priceguard.data.repository.token.TokenRepository | ||
import app.priceguard.ui.login.LoginActivity | ||
import com.google.android.material.dialog.MaterialAlertDialogBuilder | ||
import javax.inject.Inject | ||
import kotlinx.coroutines.CoroutineScope | ||
import kotlinx.coroutines.Dispatchers | ||
import kotlinx.coroutines.launch | ||
|
||
class ErrorDialogFragment : DialogFragment() { | ||
|
||
@Inject | ||
lateinit var tokenRepository: TokenRepository | ||
|
||
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { | ||
return MaterialAlertDialogBuilder( | ||
requireActivity(), | ||
R.style.ThemeOverlay_App_MaterialAlertDialog | ||
).apply { | ||
setTitle(getString(R.string.permission_denied_title)) | ||
setMessage(getString(R.string.permission_denied_message)) | ||
setPositiveButton(getString(R.string.confirm)) { _, _ -> goBackToLoginActivity(tokenRepository) } | ||
}.create() | ||
} | ||
|
||
override fun onStart() { | ||
super.onStart() | ||
dialog?.setCancelable(false) | ||
} | ||
|
||
private fun goBackToLoginActivity(tokenRepository: TokenRepository) { | ||
CoroutineScope(Dispatchers.IO).launch { tokenRepository.clearTokens() } | ||
val intent = Intent(requireActivity(), LoginActivity::class.java) | ||
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK | ||
startActivity(intent) | ||
requireActivity().finish() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 15 additions & 2 deletions
17
android/app/src/main/java/app/priceguard/ui/additem/link/LinkHelperWebViewActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,32 @@ | ||
package app.priceguard.ui.additem.link | ||
|
||
import android.os.Bundle | ||
import android.webkit.WebView | ||
import androidx.appcompat.app.AppCompatActivity | ||
import app.priceguard.databinding.ActivityLinkHelperWebViewBinding | ||
|
||
class LinkHelperWebViewActivity : AppCompatActivity() { | ||
|
||
private lateinit var binding: ActivityLinkHelperWebViewBinding | ||
private lateinit var webView: WebView | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
|
||
binding = ActivityLinkHelperWebViewBinding.inflate(layoutInflater) | ||
setContentView(binding.root) | ||
|
||
binding.wbLinkHelper.loadUrl("https://info-kr.priceguard.app/") | ||
webView = WebView(this) | ||
webView.loadUrl("https://info-kr.priceguard.app/") | ||
binding.wbLinkHelper.addView(webView) | ||
} | ||
|
||
override fun onDestroy() { | ||
super.onDestroy() | ||
binding.wbLinkHelper.removeAllViews() | ||
webView.clearHistory() | ||
webView.clearCache(true) | ||
webView.loadUrl("about:blank") | ||
webView.pauseTimers() | ||
webView.destroy() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.