Skip to content

Commit

Permalink
[MOD] : #289 클립보드 토스트 메세지 버전 분기 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
dongx0915 committed Dec 15, 2023
1 parent ea89969 commit c363a5b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ class RunnectDeveloperActivity : AppCompatActivity(R.layout.activity_runnect_dev
val clipData = ClipData.newPlainText(CLIPBOARD_LABEL, text)
clipboardManager?.setPrimaryClip(clipData)

context?.let {
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.S_V2) {
RunnectToast.createToast(it, getString(R.string.dev_mode_copy_to_text)).show()
}
}

return true
}

Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@
<string name="draw_custom_departure_guide_frame">지도에서 선택</string>
<string name="draw_next">다음으로</string>
<string name="dev_mode_require_restart">3초 후 강제 종료됩니다. 앱을 재실행 해주세요.</string>
<string name="dev_mode_copy_to_text">"클립보드에 복사되었습니다."</string>

<!-- visitor mode -->
<string name="dialog_visitor_mode_require_login_desc">가입 후 로그인 시 코스를 저장하고 달릴 수 있어요!</string>
<string name="dialog_visitor_mode_require_login_cancel">닫기</string>
Expand Down

0 comments on commit c363a5b

Please sign in to comment.