Skip to content

Commit

Permalink
feat : 고객센터 문의, 개인정보 처리 방침, 앱 버전 노출 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-comlinee committed Dec 1, 2024
1 parent f2b2d4a commit ca32799
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
13 changes: 10 additions & 3 deletions app/src/main/java/com/dna/beyoureyes/ui/myInfo/MyInfoFragment.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.dna.beyoureyes.ui.myInfo

import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.view.Gravity
Expand All @@ -20,6 +21,7 @@ import com.dna.beyoureyes.databinding.FragmentMyInfoBinding
import com.dna.beyoureyes.model.FoodHistory
import com.dna.beyoureyes.model.diseaseInfo
import com.google.android.material.chip.Chip
import com.google.firebase.BuildConfig

class MyInfoFragment : Fragment() {
private var _binding: FragmentMyInfoBinding? = null
Expand All @@ -31,6 +33,8 @@ class MyInfoFragment : Fragment() {
private val shareTitle = "친구에게 공유하기"
private val appLink = "https://play.google.com/store/apps/details?id=com.dna.beyoureyes"
private val content = "더 건강한 식습관으로 당신의 삶을 변화시키세요!\n" + "지금 바로 앱을 다운로드하세요 ⬇️"
private val policyLink = "https://polar-wolf-52e.notion.site/3ff38ff000ef47b99fa8d4e890a6b4a7?pvs=74"
private val contactLink = "http://pf.kakao.com/_Bdqun/chat"

override fun onCreateView(
inflater: LayoutInflater,
Expand Down Expand Up @@ -65,13 +69,16 @@ class MyInfoFragment : Fragment() {
}
// 고객센터 문의하기
binding.contactBtn.setOnClickListener {

val intent = Intent(Intent.ACTION_VIEW, Uri.parse(contactLink))
startActivity(intent)
}
// 개인정보 처리 방침
binding.privacyPolicyBtn.setOnClickListener {

val intent = Intent(Intent.ACTION_VIEW, Uri.parse(policyLink))
startActivity(intent)
}

// 버전 이름
binding.appVersionText.setText("version ${BuildConfig.VERSION_NAME}")
updateProfile()
return root
}
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/layout/fragment_my_info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,6 @@
android:layout_weight="1"
android:fontFamily="@font/wanted_sans_semi_bold"
android:gravity="end|center_vertical"
android:text="@string/tmp_my_info_app_version_value"
android:textColor="@color/gray_500"
android:textSize="14sp" />
</LinearLayout>
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@

<string name="tmp_my_info_nickname">SSO</string>
<string name="tmp_my_info_history_cnt">0</string>
<string name="tmp_my_info_app_version_value">version 5.0</string>

<string name="tmp_intake_bar_percent_value">140%</string>
<string name="tmp_intake_bar_mg_value">420mg</string>
Expand Down

0 comments on commit ca32799

Please sign in to comment.