Skip to content

Commit

Permalink
✨ add manual address to menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Szzrain committed Jun 26, 2023
1 parent ee9ede1 commit f298925
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
minSdk 26
//noinspection ExpiredTargetSdkVersion
targetSdk 28
versionCode 34
versionName "v0.5.4-rc"
versionCode 35
versionName "v0.5.5-rc"
buildConfigField "String", "DOCUMENTS_AUTHORITY", "\"com.sealdice.dice.authorities\""
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
Expand Down
9 changes: 8 additions & 1 deletion app/src/main/java/com/sealdice/dice/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class MainActivity : AppCompatActivity() {
R.id.action_official_website -> {
val intent = Intent()
intent.action = "android.intent.action.VIEW"
intent.data = Uri.parse("https://sealdice.com")
intent.data = Uri.parse("https://dice.weizaima.com")
startActivity(intent)
true
}
Expand All @@ -114,6 +114,13 @@ class MainActivity : AppCompatActivity() {
startActivity(intent)
true
}
R.id.action_manual -> {
val intent = Intent()
intent.action = "android.intent.action.VIEW"
intent.data = Uri.parse("https://dice.weizaima.com/manual/")
startActivity(intent)
true
}
R.id.action_check_update -> {
val builder: AlertDialog.Builder = AlertDialog.Builder(this)
builder.setCancelable(false) // if you want user to wait for some process to finish,
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/res/menu/menu_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
android:orderInCategory="100"
android:title="@string/action_check_update"
app:showAsAction="never" />
<item
android:id="@+id/action_manual"
android:orderInCategory="100"
android:title="@string/action_manual"
app:showAsAction="never" />
<item
android:id="@+id/action_about"
android:orderInCategory="100"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
<string name="thanks">项目参与者:\n\n木落(fy0) \nSzzRain \n于言诺 \n檀轶步棋 \n\n特别感谢: \n木末君(logs404)</string>
<string name="review">问题反馈</string>
<string name="repo">项目地址</string>
<string name="action_manual">使用手册</string>
</resources>

0 comments on commit f298925

Please sign in to comment.