fix ActivityNotFoundException

This commit is contained in:
BinTianqi
2024-02-21 22:18:03 +08:00
parent 9325480b35
commit b555747f89
11 changed files with 173 additions and 89 deletions

View File

@@ -29,6 +29,9 @@ fun AppSetting(navCtrl:NavHostController){
val isWear = sharedPref.getBoolean("isWear",false)
val bodyTextStyle = if(isWear){typography.bodyMedium}else{typography.bodyLarge}
val titleColor = colorScheme.onPrimaryContainer
val pkgInfo = myContext.packageManager.getPackageInfo(myContext.packageName,0)
val verCode = pkgInfo.versionCode
val verName = pkgInfo.versionName
Column(modifier = sections()) {
Row(modifier = Modifier.fillMaxWidth().padding(horizontal = 3.dp),horizontalArrangement = Arrangement.SpaceBetween, verticalAlignment = Alignment.CenterVertically) {
Text(text = "Wear", style = typography.titleLarge, color = titleColor)
@@ -59,6 +62,7 @@ fun AppSetting(navCtrl:NavHostController){
modifier = Modifier.padding(start = 8.dp, end = 8.dp, bottom = 12.dp)
) {
Text(text = "关于", style = typography.headlineSmall, color = titleColor)
Text(text = "Android owner v$verName ($verCode)", style = bodyTextStyle)
Text(text = "使用安卓的Device admin、Device owner 、Profile owner全方位掌控你的设备", style = bodyTextStyle)
Spacer(Modifier.padding(vertical = 4.dp))
Text(text = "这个应用只在AOSP和LineageOS上测试过不确保每个功能都在其它系统可用尤其是国内的魔改系统。", style = bodyTextStyle)