diff --git a/app/src/main/java/com/dongyang/android/youdongknowme/ui/view/setting/PermissionDialog.kt b/app/src/main/java/com/dongyang/android/youdongknowme/ui/view/setting/PermissionDialog.kt index d3b07322..720fdea8 100644 --- a/app/src/main/java/com/dongyang/android/youdongknowme/ui/view/setting/PermissionDialog.kt +++ b/app/src/main/java/com/dongyang/android/youdongknowme/ui/view/setting/PermissionDialog.kt @@ -33,17 +33,17 @@ class PermissionDialog( dialog?.window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT)) // 제목, 내용 설정 - binding.customTvTitle.text = title - binding.customTvContent.text = content + binding.tvDialogPermissionTitle.text = title + binding.tvDialogPermissionContent.text = content // 취소 버튼 - binding.customTvBtn1.setOnClickListener { + binding.tvDialogPermissionCancel.setOnClickListener { cancelListener?.invoke() dismiss() } // 확인 버튼 - binding.customTvBtn2.setOnClickListener { + binding.tvDialogPermissionComplete.setOnClickListener { val intent = Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS).setData(Uri.parse("package:$pacakageName")) startActivity(intent) diff --git a/app/src/main/res/layout/dialog_permission.xml b/app/src/main/res/layout/dialog_permission.xml index 3a3952ae..2573550f 100644 --- a/app/src/main/res/layout/dialog_permission.xml +++ b/app/src/main/res/layout/dialog_permission.xml @@ -9,57 +9,55 @@ android:background="@drawable/bg_stroke_gray300_radius_2dp"> + app:layout_constraintTop_toBottomOf="@+id/tv_dialog_permission_title" /> + app:layout_constraintEnd_toStartOf="@+id/tv_dialog_permission_complete" + app:layout_constraintTop_toBottomOf="@+id/tv_dialog_permission_content" /> - - \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index a017cb41..0f257cec 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -145,4 +145,8 @@ 기기 알림이 꺼져있습니다. 개인정보 보호 > 알림)을 활성화해야 공지 사항에 대한 키워드를 받을 수 있습니다.]]> + 제목 + 내용 + 취소 + 설정 화면 이동 \ No newline at end of file