6.7.0 - Alpha3 - 修复启动器图标无法显示快捷方式菜单的问题
This commit is contained in:
@@ -231,6 +231,10 @@
|
||||
|
||||
</intent-filter>
|
||||
|
||||
<meta-data
|
||||
android:name="android.app.shortcuts"
|
||||
android:resource="@xml/app_shortcuts" />
|
||||
|
||||
</activity-alias>
|
||||
|
||||
<activity-alias
|
||||
@@ -248,6 +252,10 @@
|
||||
|
||||
</intent-filter>
|
||||
|
||||
<meta-data
|
||||
android:name="android.app.shortcuts"
|
||||
android:resource="@xml/app_shortcuts" />
|
||||
|
||||
</activity-alias>
|
||||
|
||||
<activity
|
||||
|
||||
@@ -160,29 +160,32 @@ class LauncherIconPreference : MaterialListPreference, SharedPreferences.OnShare
|
||||
)
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N_MR1) {
|
||||
ctx.getSystemService(ShortcutManager::class.java)?.let { sm ->
|
||||
sm.pinnedShortcuts.mapNotNull { shortcutInfo ->
|
||||
ShortcutInfo.Builder(ctx, shortcutInfo.id).apply {
|
||||
shortcutInfo.intent?.let {
|
||||
it.component?.let { component ->
|
||||
setActivity(ComponentName(component.packageName, component.className))
|
||||
sm.pinnedShortcuts
|
||||
.filterNot { it.isDeclaredInManifest }
|
||||
.filterNot { Build.VERSION.SDK_INT >= Build.VERSION_CODES.R && it.isImmutable }
|
||||
.mapNotNull { shortcutInfo ->
|
||||
ShortcutInfo.Builder(ctx, shortcutInfo.id).apply {
|
||||
shortcutInfo.intent?.let {
|
||||
it.component?.let { component ->
|
||||
setActivity(ComponentName(component.packageName, component.className))
|
||||
} ?: run {
|
||||
setActivity(ComponentName(ctx, ShortcutActivity::class.java))
|
||||
}
|
||||
setIntent(it)
|
||||
} ?: run {
|
||||
setActivity(ComponentName(ctx, ShortcutActivity::class.java))
|
||||
setIntent(Intent(ctx, ShortcutActivity::class.java))
|
||||
}
|
||||
setIntent(it)
|
||||
} ?: run {
|
||||
setActivity(ComponentName(ctx, ShortcutActivity::class.java))
|
||||
setIntent(Intent(ctx, ShortcutActivity::class.java))
|
||||
}
|
||||
(shortcutInfo.shortLabel ?: shortcutInfo.longLabel)?.let {
|
||||
setShortLabel(it)
|
||||
}
|
||||
(shortcutInfo.longLabel ?: shortcutInfo.shortLabel)?.let {
|
||||
setLongLabel(it)
|
||||
}
|
||||
}.build()
|
||||
}.takeUnless { it.isEmpty() }?.let { toUpdate ->
|
||||
sm.updateShortcuts(toUpdate)
|
||||
}
|
||||
(shortcutInfo.shortLabel ?: shortcutInfo.longLabel)?.let {
|
||||
setShortLabel(it)
|
||||
}
|
||||
(shortcutInfo.longLabel ?: shortcutInfo.shortLabel)?.let {
|
||||
setLongLabel(it)
|
||||
}
|
||||
}.build()
|
||||
}.takeUnless { it.isEmpty() }?.let { toUpdate ->
|
||||
sm.updateShortcuts(toUpdate)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#Mon Jul 21 18:22:17 CST 2025
|
||||
BUILD_TIME=1753093337104
|
||||
#Wed Jul 23 14:44:12 CST 2025
|
||||
BUILD_TIME=1753253052464
|
||||
COMPILE_SDK_VERSION=35
|
||||
IMAGE_QUANT_CMAKE_VERSION=3.22.1
|
||||
IMAGE_QUANT_NDK_VERSION=26.1.10909125
|
||||
@@ -19,6 +19,6 @@ RAPID_OCR_OPENCV_MOBILE_LABEL_VERSION=13
|
||||
RAPID_OCR_OPENCV_MOBILE_VERSION=4.5.3
|
||||
TARGET_SDK_VERSION=35
|
||||
TARGET_SDK_VERSION_INRT=29
|
||||
VERSION_BUILD=3336
|
||||
VERSION_BUILD=3337
|
||||
VERSION_NAME=6.7.0 Alpha3
|
||||
VSCODE_EXT_REQUIRED_VERSION=1.0.8
|
||||
|
||||
Reference in New Issue
Block a user