Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature/#946] WebView에 사진 다운로드 기능 추가 #947

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

l2hyunwoo
Copy link
Member

What is this issue?

  • DownloadManager 활용해서 WebView에 사진 다운로드 기능 추가

@l2hyunwoo l2hyunwoo self-assigned this Oct 25, 2024
@l2hyunwoo l2hyunwoo requested a review from a team as a code owner October 25, 2024 22:16
Copy link

height bot commented Oct 25, 2024

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

Copy link
Member

@chattymin chattymin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

웹뷰 처리 재밌네요~
조만간 정독하겠슴다

그리고.. 저 다이얼로그는 제가 해볼게요 ㅜ.ㅜ

Comment on lines +117 to +123
downloadManager.enqueue(request)
} else {
permissionRequestLauncher.launch(android.Manifest.permission.WRITE_EXTERNAL_STORAGE)
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요거 특정 횟수(아마 3회) 이상 요청하면 더이상 팝업 안뜨는걸로 아는데 그거 관련 로직 추가하는건 어떨까요??

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거 제 기기에서 테스트가 안되는데 ㅋㅋㅋ 어카죠..

Comment on lines +66 to +72
private val permissionRequestLauncher = registerForActivityResult(
ActivityResultContracts.RequestPermission()
) { isGranted ->
if (!isGranted) {
toast("권한을 받아오지 못했습니다.")
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 부분 홈에서 알림 권한 얻어올 때도 쓰던데 따로 분리할 수 있을까요?

Comment on lines +93 to +97
binding.webView.setDownloadListener { url, userAgent, contentDisposition, mimetype, _ ->
if (ContextCompat.checkSelfPermission(
this,
android.Manifest.permission.WRITE_EXTERNAL_STORAGE
) == android.content.pm.PackageManager.PERMISSION_GRANTED
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요 부분 아래 함수들(~handle)과 달리 따로 함수화하지 않은 이유가 있으실까요?

Copy link
Contributor

@giovannijunseokim giovannijunseokim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다~!
혹시 시연 영상 있으면 PR에 첨부 가능할까요 !?

@l2hyunwoo l2hyunwoo force-pushed the feature/#946 branch 2 times, most recently from e76e2a3 to be3ca64 Compare November 1, 2024 16:26
@l2hyunwoo l2hyunwoo force-pushed the feature/#946 branch 2 times, most recently from 806a6d9 to 403552f Compare November 18, 2024 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants