mirror of
https://github.com/LittleTurtle2333/SimplicityTools.git
synced 2026-07-12 19:31:17 +08:00
更新关于页
This commit is contained in:
@@ -347,84 +347,6 @@ class SettingsActivity : MIUIActivity() {
|
|||||||
return getString(R.string.menu)
|
return getString(R.string.menu)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun aboutItems(): ArrayList<BaseView> {
|
|
||||||
return ArrayList<BaseView>().apply {
|
|
||||||
add(AuthorV(authorHead = getDrawable(R.drawable.lt)!!,authorName = "乌堆小透明",authorTips = "开发者",onClick = {
|
|
||||||
try {
|
|
||||||
startActivity(
|
|
||||||
Intent(
|
|
||||||
Intent.ACTION_VIEW,
|
|
||||||
Uri.parse("coolmarket://u/883441")
|
|
||||||
)
|
|
||||||
)
|
|
||||||
Toast.makeText(activity, "乌堆小透明:靓仔,点个关注吧!", Toast.LENGTH_SHORT)
|
|
||||||
.show()
|
|
||||||
} catch (e: Exception) {
|
|
||||||
Toast.makeText(activity, "本机未安装酷安应用", Toast.LENGTH_SHORT).show()
|
|
||||||
val uri = Uri.parse("http://www.coolapk.com/u/883441")
|
|
||||||
val intent = Intent(Intent.ACTION_VIEW, uri)
|
|
||||||
startActivity(intent)
|
|
||||||
}
|
|
||||||
}))
|
|
||||||
add(
|
|
||||||
TextSummaryArrowV(
|
|
||||||
TextSummaryV(
|
|
||||||
textId = R.string.opensource,
|
|
||||||
tipsId = R.string.github_url,
|
|
||||||
onClickListener = {
|
|
||||||
try {
|
|
||||||
val uri =
|
|
||||||
Uri.parse("https://github.com/LittleTurtle2333/Simplicity_Tools_Xposed")
|
|
||||||
val intent = Intent(Intent.ACTION_VIEW, uri)
|
|
||||||
startActivity(intent)
|
|
||||||
} catch (e: Exception) {
|
|
||||||
Toast.makeText(activity, "访问失败", Toast.LENGTH_SHORT).show()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
)
|
|
||||||
)
|
|
||||||
add(
|
|
||||||
TextSummaryArrowV(
|
|
||||||
TextSummaryV(
|
|
||||||
textId = R.string.issues,
|
|
||||||
tipsId = R.string.issues_url,
|
|
||||||
onClickListener = {
|
|
||||||
try {
|
|
||||||
val uri =
|
|
||||||
Uri.parse("https://github.com/LittleTurtle2333/Simplicity_Tools_Xposed/issues")
|
|
||||||
val intent = Intent(Intent.ACTION_VIEW, uri)
|
|
||||||
startActivity(intent)
|
|
||||||
} catch (e: Exception) {
|
|
||||||
Toast.makeText(activity, "访问失败", Toast.LENGTH_SHORT).show()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
)
|
|
||||||
)
|
|
||||||
add(
|
|
||||||
TextSummaryArrowV(
|
|
||||||
TextSummaryV(
|
|
||||||
textId = R.string.verison,
|
|
||||||
tips = "${BuildConfig.VERSION_NAME}(${BuildConfig.BUILD_TYPE})",
|
|
||||||
onClickListener = {
|
|
||||||
try {
|
|
||||||
val uri =
|
|
||||||
Uri.parse("https://github.com/Xposed-Modules-Repo/com.lt2333.simplicitytools/releases")
|
|
||||||
val intent = Intent(Intent.ACTION_VIEW, uri)
|
|
||||||
startActivity(intent)
|
|
||||||
} catch (e: Exception) {
|
|
||||||
Toast.makeText(activity, "访问失败", Toast.LENGTH_SHORT).show()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fun aboutName(): String {
|
|
||||||
return getString(R.string.about_module)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun menuItems(): ArrayList<BaseView> {
|
override fun menuItems(): ArrayList<BaseView> {
|
||||||
return ArrayList<BaseView>().apply {
|
return ArrayList<BaseView>().apply {
|
||||||
add(
|
add(
|
||||||
@@ -475,6 +397,128 @@ class SettingsActivity : MIUIActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun aboutName(): String {
|
||||||
|
return getString(R.string.about_module)
|
||||||
|
}
|
||||||
|
|
||||||
|
fun aboutItems(): ArrayList<BaseView> {
|
||||||
|
return ArrayList<BaseView>().apply {
|
||||||
|
add(
|
||||||
|
AuthorV(
|
||||||
|
authorHead = getDrawable(R.drawable.lt)!!,
|
||||||
|
authorName = "乌堆小透明",
|
||||||
|
authorTips = "开发者",
|
||||||
|
onClick = {
|
||||||
|
try {
|
||||||
|
startActivity(
|
||||||
|
Intent(
|
||||||
|
Intent.ACTION_VIEW,
|
||||||
|
Uri.parse("coolmarket://u/883441")
|
||||||
|
)
|
||||||
|
)
|
||||||
|
Toast.makeText(activity, "乌堆小透明:靓仔,点个关注吧!", Toast.LENGTH_SHORT)
|
||||||
|
.show()
|
||||||
|
} catch (e: Exception) {
|
||||||
|
Toast.makeText(activity, "本机未安装酷安应用", Toast.LENGTH_SHORT).show()
|
||||||
|
val uri = Uri.parse("http://www.coolapk.com/u/883441")
|
||||||
|
val intent = Intent(Intent.ACTION_VIEW, uri)
|
||||||
|
startActivity(intent)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
)
|
||||||
|
add(
|
||||||
|
TitleTextV(text = getString(R.string.thank_list))
|
||||||
|
)
|
||||||
|
add(
|
||||||
|
TextSummaryArrowV(
|
||||||
|
TextSummaryV(
|
||||||
|
textId = R.string.contributor_list,
|
||||||
|
onClickListener = {
|
||||||
|
try {
|
||||||
|
val uri =
|
||||||
|
Uri.parse("https://github.com/LittleTurtle2333/SimplicityTools/graphs/contributors")
|
||||||
|
val intent = Intent(Intent.ACTION_VIEW, uri)
|
||||||
|
startActivity(intent)
|
||||||
|
} catch (e: Exception) {
|
||||||
|
Toast.makeText(activity, "访问失败", Toast.LENGTH_SHORT).show()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
)
|
||||||
|
)
|
||||||
|
add(
|
||||||
|
TextSummaryArrowV(
|
||||||
|
TextSummaryV(
|
||||||
|
textId = R.string.third_party_open_source_statement,
|
||||||
|
onClickListener = {
|
||||||
|
try {
|
||||||
|
val uri =
|
||||||
|
Uri.parse("https://github.com/LittleTurtle2333/SimplicityTools/tree/main/doc/ThirdPartyOpenSourceStatement.md")
|
||||||
|
val intent = Intent(Intent.ACTION_VIEW, uri)
|
||||||
|
startActivity(intent)
|
||||||
|
} catch (e: Exception) {
|
||||||
|
Toast.makeText(activity, "访问失败", Toast.LENGTH_SHORT).show()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
)
|
||||||
|
)
|
||||||
|
add(
|
||||||
|
TitleTextV(text = getString(R.string.other))
|
||||||
|
)
|
||||||
|
add(
|
||||||
|
TextSummaryArrowV(
|
||||||
|
TextSummaryV(
|
||||||
|
textId = R.string.opensource,
|
||||||
|
tipsId = R.string.github_url,
|
||||||
|
onClickListener = {
|
||||||
|
try {
|
||||||
|
val uri =
|
||||||
|
Uri.parse("https://github.com/LittleTurtle2333/SimplicityTools")
|
||||||
|
val intent = Intent(Intent.ACTION_VIEW, uri)
|
||||||
|
startActivity(intent)
|
||||||
|
} catch (e: Exception) {
|
||||||
|
Toast.makeText(activity, "访问失败", Toast.LENGTH_SHORT).show()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
)
|
||||||
|
)
|
||||||
|
add(
|
||||||
|
TextSummaryArrowV(
|
||||||
|
TextSummaryV(
|
||||||
|
textId = R.string.issues,
|
||||||
|
tipsId = R.string.issues_url,
|
||||||
|
onClickListener = {
|
||||||
|
try {
|
||||||
|
val uri =
|
||||||
|
Uri.parse("https://github.com/LittleTurtle2333/SimplicityTools/issues")
|
||||||
|
val intent = Intent(Intent.ACTION_VIEW, uri)
|
||||||
|
startActivity(intent)
|
||||||
|
} catch (e: Exception) {
|
||||||
|
Toast.makeText(activity, "访问失败", Toast.LENGTH_SHORT).show()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
)
|
||||||
|
)
|
||||||
|
add(
|
||||||
|
TextSummaryArrowV(
|
||||||
|
TextSummaryV(
|
||||||
|
textId = R.string.verison,
|
||||||
|
tips = "${BuildConfig.VERSION_NAME}(${BuildConfig.BUILD_TYPE})",
|
||||||
|
onClickListener = {
|
||||||
|
try {
|
||||||
|
val uri =
|
||||||
|
Uri.parse("https://github.com/Xposed-Modules-Repo/com.lt2333.simplicitytools/releases")
|
||||||
|
val intent = Intent(Intent.ACTION_VIEW, uri)
|
||||||
|
startActivity(intent)
|
||||||
|
} catch (e: Exception) {
|
||||||
|
Toast.makeText(activity, "访问失败", Toast.LENGTH_SHORT).show()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override fun getItems(item: String): ArrayList<BaseView> {
|
override fun getItems(item: String): ArrayList<BaseView> {
|
||||||
return when (item) {
|
return when (item) {
|
||||||
aboutName() -> aboutItems()
|
aboutName() -> aboutItems()
|
||||||
|
|||||||
BIN
app/src/main/res/drawable/lt.png
Normal file
BIN
app/src/main/res/drawable/lt.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
@@ -74,5 +74,10 @@
|
|||||||
<string name="matters_needing_attention">模块注意事项</string>
|
<string name="matters_needing_attention">模块注意事项</string>
|
||||||
<string name="Done">确定</string>
|
<string name="Done">确定</string>
|
||||||
<string name="about_module_summary">查看模块相关信息</string>
|
<string name="about_module_summary">查看模块相关信息</string>
|
||||||
|
<string name="contributor_list">开源仓库贡献者名单</string>
|
||||||
|
<string name="developer">开发者</string>
|
||||||
|
<string name="thank_list">感谢名单</string>
|
||||||
|
<string name="third_party_open_source_statement">第三方开源声明</string>
|
||||||
|
<string name="corepacth">解除安装限制</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
6
doc/ThirdPartyOpenSourceStatement.md
Normal file
6
doc/ThirdPartyOpenSourceStatement.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# 第三方开源申明
|
||||||
|
ThirdPartyOpenSourceStatement
|
||||||
|
|
||||||
|
##### GNU General Public License v2.0 :
|
||||||
|
CorePatch - LSPosed
|
||||||
|
https://github.com/LSPosed/CorePatch
|
||||||
Reference in New Issue
Block a user