Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ class AboutActivity : EdgeToEdgeIDEActivity() {
private val ACTION_EMAIL = id++
private val ACTION_TG_CHANNEL = id++
private val ACTION_GH_FORUM = id++
private val ACTION_YOUTUBE = id++
private val ACTION_BILIBILI = id++
}

override fun onCreate(savedInstanceState: Bundle?) {
Expand Down Expand Up @@ -119,6 +121,8 @@ class AboutActivity : EdgeToEdgeIDEActivity() {
ACTION_EMAIL -> UrlManager.openUrl(getString(R.string.mail_to_adfa), null, this)
ACTION_GH_FORUM -> UrlManager.openUrl(getString(R.string.github_discussions_url), context = this)
ACTION_TG_CHANNEL -> UrlManager.openUrl(getString(R.string.telegram_channel_url), "org.telegram.messenger", this)
ACTION_YOUTUBE -> UrlManager.openUrl(getString(R.string.youtube_channel_url), context = this)
ACTION_BILIBILI -> UrlManager.openUrl(getString(R.string.bilibili_video_url), context = this)
}
}

Expand Down Expand Up @@ -160,6 +164,24 @@ class AboutActivity : EdgeToEdgeIDEActivity() {
getString(R.string.telegram_channel_url),
),
)
add(
createSimpleIconTextItem(
this@AboutActivity,
ACTION_YOUTUBE,
R.drawable.ic_youtube,
R.string.about_option_youtube,
getString(R.string.youtube_channel_url),
),
)
add(
createSimpleIconTextItem(
this@AboutActivity,
ACTION_BILIBILI,
R.drawable.ic_bilibili,
R.string.about_option_bilibili,
getString(R.string.bilibili_video_url),
),
)
Comment thread
davidschachterADFA marked this conversation as resolved.
}

private fun createSimpleIconTextItem(
Expand Down
11 changes: 11 additions & 0 deletions resources/src/main/res/drawable/ic_bilibili.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#ffffff"
android:pathData="M17.813,4.653h0.854c1.51,0.054 2.769,0.578 3.773,1.574 1.004,0.995 1.524,2.249 1.56,3.76v7.36c-0.036,1.51 -0.556,2.769 -1.56,3.773s-2.262,1.524 -3.773,1.56H5.333c-1.51,-0.036 -2.769,-0.556 -3.773,-1.56S0.036,18.858 0,17.347v-7.36c0.036,-1.511 0.556,-2.765 1.56,-3.76 1.004,-0.996 2.262,-1.52 3.773,-1.574h0.774l-1.174,-1.12a1.234,1.234 0,0 1,-0.373 -0.906c0,-0.356 0.124,-0.658 0.373,-0.907l0.027,-0.027c0.267,-0.249 0.573,-0.373 0.92,-0.373 0.347,0 0.653,0.124 0.92,0.373L9.653,4.44c0.071,0.071 0.134,0.142 0.187,0.213h4.267a0.836,0.836 0,0 1,0.16 -0.213l2.853,-2.747c0.267,-0.249 0.573,-0.373 0.92,-0.373 0.347,0 0.662,0.151 0.929,0.4 0.267,0.249 0.391,0.551 0.391,0.907 0,0.355 -0.124,0.657 -0.373,0.906zM5.333,7.24c-0.746,0.018 -1.373,0.276 -1.88,0.773 -0.506,0.498 -0.769,1.13 -0.786,1.894v7.52c0.017,0.764 0.28,1.395 0.786,1.893 0.507,0.498 1.134,0.756 1.88,0.773h13.334c0.746,-0.017 1.373,-0.275 1.88,-0.773 0.506,-0.498 0.769,-1.129 0.786,-1.893v-7.52c-0.017,-0.765 -0.28,-1.396 -0.786,-1.894 -0.507,-0.497 -1.134,-0.755 -1.88,-0.773zM8,11.107c0.373,0 0.684,0.124 0.933,0.373 0.25,0.249 0.383,0.569 0.4,0.96v1.173c-0.017,0.391 -0.15,0.711 -0.4,0.96 -0.249,0.25 -0.56,0.374 -0.933,0.374s-0.684,-0.125 -0.933,-0.374c-0.25,-0.249 -0.383,-0.569 -0.4,-0.96V12.44c0,-0.373 0.129,-0.689 0.386,-0.947 0.258,-0.257 0.574,-0.386 0.947,-0.386zM16,11.107c0.373,0 0.684,0.124 0.933,0.373 0.25,0.249 0.383,0.569 0.4,0.96v1.173c-0.017,0.391 -0.15,0.711 -0.4,0.96 -0.249,0.25 -0.56,0.374 -0.933,0.374s-0.684,-0.125 -0.933,-0.374c-0.25,-0.249 -0.383,-0.569 -0.4,-0.96V12.44c0.017,-0.391 0.15,-0.711 0.4,-0.96 0.249,-0.249 0.56,-0.373 0.933,-0.373Z" />
</vector>
11 changes: 11 additions & 0 deletions resources/src/main/res/drawable/ic_youtube.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#ffffff"
android:pathData="M23.498,6.186a3.016,3.016 0,0 0,-2.122 -2.136C19.505,3.545 12,3.545 12,3.545s-7.505,0 -9.377,0.505A3.017,3.017 0,0 0,0.502 6.186C0,8.07 0,12 0,12s0,3.93 0.502,5.814a3.016,3.016 0,0 0,2.122 2.136c1.871,0.505 9.376,0.505 9.376,0.505s7.505,0 9.377,-0.505a3.015,3.015 0,0 0,2.122 -2.136C24,15.93 24,12 24,12s0,-3.93 -0.502,-5.814zM9.545,15.568L9.545,8.432L15.818,12z" />
</vector>
4 changes: 4 additions & 0 deletions resources/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<string name="app_name" translatable="false">Code on the Go</string>
<string name="about_option_email">Email</string>
<string name="about_option_website">Website</string>
<string name="about_option_youtube">YouTube</string>
<string name="about_option_bilibili">Bilibili</string>
<string name="about_footer_alternate" translatable="false">Code on the Go v\u2022 %s</string>
<string name="about_footer">Code on the Go %1$s for %2$s</string>
<string name="about_subtitle">No computer? No Internet? No problem. Code apps anywhere.</string>
Expand Down Expand Up @@ -1216,6 +1218,8 @@
<string name="quickstart_url">http://localhost:6174/i/cogo-quickstart.html</string>
<string name="adfa_email">info@appdevforall.org</string>
<string name="mail_to_adfa">mailto:info@appdevforall.org</string>
<string name="youtube_channel_url">https://youtube.com/@appdevforall</string>
<string name="bilibili_video_url">https://www.bilibili.com/video/BV1AUgR6sE3G/</string>

<!-- AI Agent -->
<string name="ai_setting_saved">💾 Saved: %1$s</string>
Expand Down
Loading